LoginSignup
2
2

More than 5 years have passed since last update.

IEでHTML5のvideoタグの動画が見られないときはURLACTION_ALLOW_AUDIO_VIDEOの値を確認

Posted at

経緯

IEで動画見られないとの話があり、そもそもvideoタグのsrcに書いてあるURLへのリクエストがされていないらしいということがありました。調べてみたら unable-to-play-html5-videos-in-ie の記事にいきあたり、解決できました。

URLACTION_ALLOW_AUDIO_VIDEO とは?

平たくいうと、動画や音声メディアの再生を許可するかどうかのフラグ。
初期値は0で、IEのゾーンのセキュリティレベルをHighにすると3になって、動画が表示されなくなる。
より正確には、srcタグにあるURLへのリクエストしなくなる。

以下は公式サイトより抜粋。

Internet Explorer 9. Determines whether media elements (audio and video) are allowed. For the element to appear, both the security zone of the host webpage and the media source must allow media. By default, this URLAction permits playback of resources from all zones except the Restricted Sites zone. This means that pages in the restricted zone cannot play media from anywhere, and that pages in other zones do not permit media that is loaded from restricted sites.

regeditで閲覧・編集

regedit.exeを実行すると、レジストリの閲覧・編集ができます。上記のやつはSoftware\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3 の2701に該当します。

感想

対象に応じて、リクエストするかどうかをコントロールできる値があるとは、ちょっとびっくり。こういったところに触れる機会がなかったので、この経験はありがたい。

参考サイト

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2