Re: [問題] 用mediaelement.js內嵌youtube?

作者: poup (ppl help the ppl)   2015-01-25 13:54:46
主要問題應該是出在播放影片時會使用到flash時,
cross domain的話要用flashmediaelement-cdn.swf,
照理來說指定-cdn.swf檔案就可以了。
可是我測試了一下,
在2.14.2以前就算你是從http的player去呼叫https的swf
或是https的player去呼叫http的swf都沒有問題,
但是從2.15.0後只要跨http到https或是https到http就會報錯,
github上有人開過issue目前還是open狀態。
由於你是將flashmediaelement-cdn.swf放在https(dropbox),
你的player在blogger(http)所以只要用到flash就會出問題。
解法一: 用2.14.2。
解法二:另外找(http)地方放-cdn.swf檔案。
我有看mediaelement.js和medaelementplayer.js其版本2.14.2和2.15.0的差異,沒看到
特別的東西,看有沒有其他板友有研究。
firefox可以看是因為使用她本身的html5 player。而chrome會用flash。
在播放影片時點按右鍵就可以知道有沒有用flash了。
測試環境:
1.virtualbox上winxp(英文版) firefox35.0 chrome39.0.2171.m(內建flash)
2.linux:iceweasel 31.4.0 Chromium 37.0.2062.120
※ 引述《ballII (ballII)》之銘言:
: (我沒有自架網頁,只用blogger。
: 但我想問HTML5的<video>問題,所以冒昧來此板請教。)
: 我嘗試用mediaelement.js在我blogger裡內嵌youtube影片,像這樣:
: http://mediaelementjs.com/examples/?name=youtube
: 但我失敗了:
: http://mkhere-t.blogspot.com/2015/01/mediaelementjs.html
: 點擊影片沒有反應。
: 請問我哪裡出錯了呢?(我的codes都寫在blog文章裡了。)
: 謝謝。
:
作者: ballII (無限期徵才)   2015-01-26 14:44:00
謝謝您的協助 我後來測試各環境 發現就算能順利播放 我還是無法在youtube影片上外掛字幕讓不用flash的手機順利播放覺得hopenglish.com這種「看youtube學英語」的網站很厲害任何平台都能順利看到外掛字幕

Links booklink

Contact Us: admin [ a t ] ucptt.com