ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Programming => ข้อความที่เริ่มโดย: TheFaceBook ที่ 24 มีนาคม 2015, 10:21:09



หัวข้อ: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: TheFaceBook ที่ 24 มีนาคม 2015, 10:21:09
อยากเอาโค้ดมาใส่ให้มันเล่นสวยๆเคยลองทำกับเว็บ https://account.jwplayer.com ก็ไม่ได้มันขึ้นเออเร่อตลอดทำไมพวกเว็บดูหนังทำกันได้อะครับ


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: bonkbonk ที่ 24 มีนาคม 2015, 11:26:33
อยากรู้เหมือนกันครับ ผู้รู้ช่วยบอกหน่อย


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: maewlaay ที่ 24 มีนาคม 2015, 14:15:48
โค้ดของผมที่ใช้อยู่ครับ

ทำเป็น short code ใส่ในไฟล์ function.php

โค๊ด:
function google_vdo($atts) {
extract(shortcode_atts(array(
      'docid' => '',
      'vq' => 'large',
   ), $atts));
return '<embed src="https://video.google.com/get_player?wmode=opaque&ps=docs&partnerid=30&&docid='.$docid.'&vq='.$vq.'&showinfo=0" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed>';
}

add_shortcode('googlevdo', 'google_vdo');

วิธีใช้ googlevdo ($GOOGLE_VIDEO_ID); 

$GOOGLE_VIDEO_ID คือ id ของวิดีโอที่เราอัพโหลดเข้า google drive ครับ เช่น 0B5lYlEbxNAI-N29YZWlLTjc2UjA ประมาณนี้ครับ

อย่าลืมตั้งการ share เป็น Public on web หรือ Anyone with the link ก็ได้

:D


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: amazegu ที่ 24 มีนาคม 2015, 14:31:37
โค้ดของผมที่ใช้อยู่ครับ

ทำเป็น short code ใส่ในไฟล์ function.php

โค๊ด:
function google_vdo($atts) {
extract(shortcode_atts(array(
      'docid' => '',
      'vq' => 'large',
   ), $atts));
return '<embed src="https://video.google.com/get_player?wmode=opaque&ps=docs&partnerid=30&&docid='.$docid.'&vq='.$vq.'&showinfo=0" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed>';
}

add_shortcode('googlevdo', 'google_vdo');

วิธีใช้ googlevdo ($GOOGLE_VIDEO_ID); 

$GOOGLE_VIDEO_ID คือ id ของวิดีโอที่เราอัพโหลดเข้า google drive ครับ เช่น 0B5lYlEbxNAI-N29YZWlLTjc2UjA ประมาณนี้ครับ

อย่าลืมตั้งการ share เป็น Public on web หรือ Anyone with the link ก็ได้

:D

แจ่มๆๆ  1 เลย ลองแล้วใช้ได้ครับ  :wanwan020: :wanwan020: :wanwan020:


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: bestnmk21 ที่ 24 มีนาคม 2015, 15:20:21
โค้ดของผมที่ใช้อยู่ครับ

ทำเป็น short code ใส่ในไฟล์ function.php

โค๊ด:
function google_vdo($atts) {
extract(shortcode_atts(array(
      'docid' => '',
      'vq' => 'large',
   ), $atts));
return '<embed src="https://video.google.com/get_player?wmode=opaque&ps=docs&partnerid=30&&docid='.$docid.'&vq='.$vq.'&showinfo=0" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed>';
}

add_shortcode('googlevdo', 'google_vdo');

วิธีใช้ googlevdo ($GOOGLE_VIDEO_ID); 

$GOOGLE_VIDEO_ID คือ id ของวิดีโอที่เราอัพโหลดเข้า google drive ครับ เช่น 0B5lYlEbxNAI-N29YZWlLTjc2UjA ประมาณนี้ครับ

อย่าลืมตั้งการ share เป็น Public on web หรือ Anyone with the link ก็ได้

:D

ผมหาอยู่พอดี  1 ครับ


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: KPmemory ที่ 24 มีนาคม 2015, 15:59:59
แอบส่อง  :wanwan019:


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: dekmv ที่ 24 มีนาคม 2015, 17:27:31
เคยเห็นทำเป็น embed ได้ด้วยอ่ะครับ !


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: bonkbonk ที่ 24 มีนาคม 2015, 18:02:57
โค้ดของผมที่ใช้อยู่ครับ

ทำเป็น short code ใส่ในไฟล์ function.php

โค๊ด:
function google_vdo($atts) {
extract(shortcode_atts(array(
      'docid' => '',
      'vq' => 'large',
   ), $atts));
return '<embed src="https://video.google.com/get_player?wmode=opaque&ps=docs&partnerid=30&&docid='.$docid.'&vq='.$vq.'&showinfo=0" type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true"></embed>';
}

add_shortcode('googlevdo', 'google_vdo');

วิธีใช้ googlevdo ($GOOGLE_VIDEO_ID); 

$GOOGLE_VIDEO_ID คือ id ของวิดีโอที่เราอัพโหลดเข้า google drive ครับ เช่น 0B5lYlEbxNAI-N29YZWlLTjc2UjA ประมาณนี้ครับ

อย่าลืมตั้งการ share เป็น Public on web หรือ Anyone with the link ก็ได้

:D

เยี่ยมเลยครับ  :wanwan017:


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: aoarmy ที่ 24 มีนาคม 2015, 19:39:33
เข้ามาอ่าน จำนำ VDO  ( ได้ด้วย )  :wanwan023:

น่าจะเป็น จะนำ


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: aucharapon ที่ 24 มีนาคม 2015, 20:07:46
นำ  embed code ไปวาง

http://xxx.aphsara.com/2014/01/how-to-embed-video-in-google-drive-on.html


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: bonkbonk ที่ 24 มีนาคม 2015, 22:14:55
นำ  embed code ไปวาง

[url]http://xxx.aphsara.com/2014/01/how-to-embed-video-in-google-drive-on.html[/url]


ขอบคุณครับ  :wanwan017:


หัวข้อ: Re: เราจำนำ VDO จาก docs.google.com มาใส่เว็บยังไงครับ
เริ่มหัวข้อโดย: OXYGEN2 ที่ 24 มีนาคม 2015, 22:31:15
เข้ามาเก็บความรู้ครับ  :wanwan017: