2017-06-02 4 views
0

私はチャンネルの動画をHTMLページに埋め込むために使用するiframeを持っています。このウェブページはデジタルサイネージに使用されるため、誰もナビゲートできません。私の問題は、私が& autoplay = 1を使っても、チャンネルのビデオが自動的に起動しないということです。 コードは次のとおりです。YouTubeビデオを埋め込む自動再生

<iframe width="480" height="480" src="http://www.youtube.com/embed?listType=user_uploads&list=NBA&loop=1&autoplay=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe> 

ありがとうございました。

答えて

0

私はここに気づい

間違い、それは動作しますこれを試してみてください、embed/video_id

<iframe width="480" height="480" src="http://www.youtube.com/embed/eF5fRl3BMTY?listType=user_uploads&list=NBA&loop=1&autoplay=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe> 
+1

グレート!できます。どうもありがとうございました。 –

0

見つかりませんでしたあなたのビデオはNBAからのコンテンツが含まれ、それが再生や特定のサイトから制限されているようです/アプリケーション。

同じコードで別のYouTube動画を試したところ、うまくいきました。おそらく別の動画を試してみてください。

<iframe width="560" height="315" src="https://www.youtube.com/embed/1sDH1UBXI44?autoplay=1&listType=user_uploads&list=NBA&loop=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe>

0

<iframe width="560" height="315" src="https://www.youtube.com/embed/1sDH1UBXI44?autoplay=1&listType=user_uploads&list=NBA&loop=1&rel=0&showinfo=0&controls=0&autohide=1" frameborder="0" allowfullscreen></iframe>

+0