On my website, I have videos in mp4 and ogv formats. mp4 plays in webkit browsers. ogv plays in Firefox, but does not want to in Opera.
There is trivial HTML:
<video poster="my_video.jpg" controls="controls"> <source src="my_video.mov" type="video/mp4" /> <source src="my_video.ogv" type="video/ogg; codecs='theora, vorbis'" /> </video>
When I open the page, I see a video element with a poster, but when I press the play button, nothing happens. I do not see the progress of the download and all that is. But Firefox works great.
In the Opera Network Inspector, I see the following HTTP header for requesting .ogv video files:
GET / my_video.ogv HTTP / 1.1
User-Agent: Opera / 9.80 (Macintosh; Intel Mac OS X 10.6.7; U; ru) Presto / 2.7.62 Version / 11.01
Accept: text / html, application / xml; q = 0.9, application / xhtml + xml, image / png, image / jpeg, image / gif, image / x-xbitmap, /; q = 0.1
The “accept” part is confusing to me. Why does it accept these types of content for video?
Any ideas?
source share