0

I've used this code

<iframe width="640" height="480" src="http://www.youtube.com/embed/....?rel=0" frameborder="0" allowfullscreen></iframe>

to embed a youtube video.

I would like to automatically set the quality to the max available (which in my case is apparently 480); what happens is:

1) Firefox 12.0: the starting quality is never 480, sometime 360 sometime 240 (yes it changes from time to time)

2) Safari 5.1.4: there is just one option, 360. Why?

I read Youtube - How to force 480p video quality in embed link / <iframe> but even if I increase the frame size nothing changes. The javascript method also seems to be not reliable.

Thanks.

4

1 に答える 1

0

埋め込み URL に「&ap=%2526fmt%3D18」と「&ap=%2526fmt%3D22」を追加してみてください。D22 は 1280 で、D18 は 460 だと思いますか?

構文は、ブラウザの通常の URL と同じように埋め込みの場合と明らかに同じではありません (これは、リンクの回答に示されているものです)。

編集: コーデック情報が見つかりました。D の後に FMT 値を入力します (例: D18 D22) http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs

于 2012-05-25T17:57:07.113 に答える