I've got some trouble with the
element I guess. I have a little demo page where I'm running a video. That file is available in .webm
, .mp4
and .ogv
. The video is played properly in Firefox (10) mac+win, Safari mac, Chrome mac.
SafariやChromeの windows バージョンでも、動画ファイルが再生/表示されません(Webkitの問題かもしれません)。これは、HTMLコードの外観です。
また、MIMEタイプを正規化するために .htaccess
ファイルを使用しています。
# Video
AddType video/ogg ogv
AddType video/mp4 mp4 m4v
AddType video/webm webm
ChromesやSafarisの開発ツール(ネットワークタブ)を見て、 .webm
ファイルの再生を選択したように見えますが、 mime type
定義されていないことを示しています)、それはファイルに2回アクセスしようとしているようです。
あなた自身を見てください:
http://www.typeofnan.com ("awesome tab")
I have no clue why it works fine on OSX with both browsers, if someone can spot an error on the site please let me know. At present, I do some feature detection and use Javascript to .play()
the video. However, if I use the autoplay
attribute on the
tag, Chrome at least plays the audio, but still no video at all.
Reference: Site source on github