This resource provides an outline of all the topics you need to know about to convert Flash video to native HTML, plus resources covering all the finer details.
In a nutshell
HTML5 video is enabled through browser support for video and audio playback, Javascript extensions to control that playback, and ecosystem support for critical functions such as content protection and advertising.
Mp3Juice Downloader for YouTube convert music and video directly from YT to Mp3 Mp4. Its easiest way to save your favourites music, videos and clips to your computer or smartphone. Windows Media Player Firefox Plugin allows you to use Windows Media Player inside of Firefox. This is the official plugin, which allows you to view multimedia files in Firefox using Windows Media format, such as.wmv files. It is backwards compatible with the old 6.4 Windows Media Player.
Note: Most of the processes described in the below articles talk about video, but audio content works in such a similar way that they are generally applicable to audio too.
Planning
- Planning your transition from Flash video to HTML5 video
- Transitioning from Flash to HTML can take several months and may require new skills and software. This guide shows you how to plan for that transition, and contains two main parts, Content audit and Decision points.
Process
- File format conversion
- Once you've planned out what you want to do, the first step is to convert your video files into formats compatible with HTML embedding.
- DRM and authentication
- If your media requires authentication/rights to access, you'll need to work out how to hook up the necessary DRM and authentication mechanisms.
- Video advertising
- You may also want to incorporate advertising into your video delivery system, via an ad network.
- Distribution
- A CDN is a popular choice for effective delivery of media content.
- Video and audio players
- There are a number of ways to play back web media depending on the scale of your needs and whether you need ad integration and digital rights management.
- Subtitles and closed captions
- Just as audio and video may need transcoding for the web, subtitles and closed captions may also need to be converted and made available.
API reference
- The
<video>
and<audio>
elements - The basic elements that allow embedding of media into web apps.
HTMLMediaElement
API- The
HTMLMediaElement
API provides all the functionality you'll need for implementing basic media controls, e.g. playing and pausing media, returning the current time elapsed, etc. See alsoHTMLVideoElement
andHTMLAudioElement
. - Encrypted Media Extensions API
- The Encrypted Media Extensions API provides interfaces for controlling the playback of content subject to a digital restrictions management scheme.
- Media Source Extensions API
- The Media Source Extensions API (MSE) provides functionality enabling plugin-free web-based streaming media. Using MSE, media streams can be created via JavaScript, and played using
<audio>
and<video>
elements. - Credential Management API
- The Credential Management API lets a website store and retrieve both user and federated credentials. These capabilities allow users to sign in without typing passwords, see the federated account they used to sign in to a site, and resume a session without the explicit sign-in flow of an expired session.
Browser support
Desktop
Browser | MSE | EME | ||
---|---|---|---|---|
Browser Version | Container Supported | Browser Version | DRM supported | |
Chrome | 23 | mp4, WebM | 42 | Widevine |
Edge | All versions | mp4, m2ts | All versions | PlayReady (mp4 only) |
Firefox (Gecko) | 42 | mp4, WebM | 38 (Windows) | Widevine |
Internet Explorer | 11 | mp4 | 11 (Windows 8.1+) | PlayReady |
Opera | 30 | WebM | 32 | Widevine |
Safari (Webkit) | OS X Yosemite | mp4, m2ts | OS X Yosemite | FairPlay (m2ts only) |
Mobile
Browser | MSE | EME | ||
---|---|---|---|---|
Browser Version | Container Supported | Browser Version | DRM supported | |
Android Webview | No support | No support | No support | No support |
Chrome for Android | 30 | mp4, WebM | 42 | Widevine |
Edge Mobile | ||||
Firefox Mobile (Gecko) | 41 | mp4, WebM | No support | No support |
IE Mobile | ||||
Opera Mobile | 30 | WebM | No support | No support |
Safari Mobile | No support | No support | No support | No support |
Getting help
If you find that our migration guide leaves you with any questions unanswered, please don't hesitate to visit our MDN Discourse page and ask them there.
Firefox handles many types of audio and video content on web pages. This article explains which media formats you can play and how to control, save, and open them.
Table of Contents
- 1Supported formats
- 2Audio and video controls
Since the use of certain audio and video file types is restricted by patents, a third-party application is required to use them. Firefox, however, is able to play natively open media and some types of patented media.
Open media
Firefox can play the WAVcontainer format (.wav, .wave file types) containing uncompressed audio in PCM at 8 or 16 bits per sample.
Vorbis audio, Opus audio, Theora video, and VP8 video are free audio/video compression formats for use without patent restrictions. They can be viewed in Firefox if they are embedded in the following container formats: Ogg (.ogg, .oga, .ogv, .ogx, .spx, .opus file types) or WebM (.webm file type).
Firefox also supports FLAC (Free Lossless Audio Codec) playback (.flac file type) and MP3 playback (.mp3 file type).
Patented media
AAC and H.264/MPEG-4 AVC are patented audio/video compression formats. They can be viewed in Firefox using built-in OS libraries (so neither Mozilla nor you need to pay a fee) if embedded in the MP4container format (.mp4, .m4a, .m4p, .m4b, .m4r, .m4v file types).
Firefox supports WebM/VP9 video on systems that don't support MP4/H.264.
Tip: In order to test your system, some sample video files are available in the “Video For Everybody” Test Page at camendesign.com.
Control bar
When you visit a website that includes supported media, you will see controls for managing playback when you hold the mouse pointer over the media on the page.
- Play button: Starts playback.
- Pause button: Stops playback once it has started.
- Position slider: Indicates how much time has elapsed since the beginning of the file. Drag the slider left or right to go back or forward.
- Volume control: Click to mute or unmute. Hover and drag the slider up or down to adjust the volume.
- Fullscreen button: Toggles fullscreen when in default size.
- Default size button: Restores the default size when in fullscreen.
Context menu controls
The context menu (accessible via right-clickCtrl-click) includes the above controls except the sliders, and also let you:
- Accelerate or reduce the playback rate: Select Play Speed and then one of the available speeds.
- Play video over and over: Select Loop so that the video will play over and over automatically.
- Hide controls: Select Hide Controls so that the bottom control bar never show up. To show them, select Show Controls.
Keyboard controls
After you click on the media on a web page, to give it focus, you can control the playback with your keyboard.
Command | Shortcut |
---|---|
Toggle Play / Pause | Space bar |
Decrease volume | ↓ |
Increase volume | ↑ |
Mute audio | Ctrl + ↓command + ↓ |
Unmute audio | Ctrl + ↑command + ↑ |
Seek back 15 seconds | ← |
Seek back 10 % | Ctrl + ←command + ← |
Seek forward 15 seconds | → |
Seek forward 10 % | Ctrl + →command + → |
Seek to the beginning | Home |
Seek to the end | End |
To save an audio file from a web page to your computer:
Firefox Mp4 Downloader
- Right-clickHold down the control key while you click on the audio controls and select Save Audio As….
- Select a location on your computer to save the file.
To save a video file from a web page to your computer:
- Right-clickHold down the control key while you click on the video controls and select Save Video As….
- Select Save Snapshot As… if you only want to save the video snapshot.
- Select a location on your computer to save the file.
Firefox Mp4 Video
The media files you save from web pages may not play in your normal media player. To open these types of files:
Firefox Mp4 Ubuntu
- Open Firefox.
- Click Ctrl + Ocommand + O.
- Navigate to the folder that contains the file you want to play and click .
Firefox Mp4 Codec
If you are having problems with audio or video files, see: