I'm looking for a solution for embedding video and audio in html. The new videotag supports .ogg and .mp4, but is there a fallback solution for .flv and other formats?
For example, if I want to embed an .ogg, it will check whether or not html5 is supported, if not, it uses the fallback. If I want to embed a .flv is uses the fallback.
相关问题
- Video Format that Works on Mobile Phones
- Embed SVG into HTML (Opera-specific)
- Delete a TextTrack from a video
- jBPM6 - embed web designer in existing application
- Force fixed nav bar on top of iframe?
相关文章
- embed 循环播放MP3文件(loop="2"变成无限循环)
- How to dynamically add wmode=transparent to Youtub
- Why html5 video loop create request each iteration
- .ogg video not playing in firefox
- Unable to Mute HTML5 Video Tag in Firefox
- getElementById not working in Google Chrome extens
- Android webview black screen while playing
- Hide Native Android HTML5 Video Play Button in CSS
html5 tag supports a fallback to any element, if the browser cannot interpret the video tag. here s a quick example for a fallback to a flash-file.
instead of the embed tag, you can take any html-element (f.e. a span with text "your browser cannot interpret html5.." or a picture or anything you want). basically, html5 browser take the videosource they can play, while non-html5 browser ignore the video and source tag and take the falback element at the end.