我想我遇到了幾個問題。我正嘗試使用their instructions here嵌入Facebook視頻。Facebook嵌入式視頻:錯誤的協議和過時的Flash播放器
在Chrome中工作正常。當我在Safari中嘗試了佔位符圖像將加載很好,但嘗試播放視頻時,它不停旋轉,我得到了一系列在我的控制檯這些錯誤的:
Blocked a frame with origin "https://www.facebook.com" from accessing a frame with origin "http://localhost:4000". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
很顯然,我沒有運行https
在我的本地在這裏,我正在開發一個也是http
的網站。
然後,我在Firefox上試了一下,接到一條警告,說「這個視頻無法在您過時的Adobe Flash播放器上播放」。當我安裝新版本的Adobe Flash時,它會同時在Safari和Firefox中播放。但是,我還是得到了「協議」控制檯錯誤在Safari,我也得到了以下控制檯錯誤在Firefox:
- This site makes use of a SHA-1 Certificate; it's recommended you use certificates with signature algorithms that use hash functions stronger than SHA-1.
- Error: Permission denied to access property 'toString'
幾個問題:
- 我怎樣才能擺脫控制檯錯誤?
- 可以做些什麼來告知Safari用戶過時的Flash播放器或不使用Flash? (我注意到它的工作原理上沒有閃光的iPhone有沒有辦法告訴Facebook的使用另一種視頻格式。?)