Flash video to HTML5 video - Plugins 编辑

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. 

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 also HTMLVideoElement and HTMLAudioElement.
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

BrowserMSE EME 
 Browser VersionContainer SupportedBrowser VersionDRM supported
Chrome23mp4, WebM42Widevine
EdgeAll versionsmp4, m2tsAll versionsPlayReady (mp4 only)
Firefox (Gecko)42mp4, WebM38 (Windows)Widevine
Internet Explorer11mp411 (Windows 8.1+)PlayReady
Opera30WebM32Widevine
Safari (Webkit)OS X Yosemitemp4, m2tsOS X YosemiteFairPlay (m2ts only)

Mobile

BrowserMSE EME 
 Browser VersionContainer SupportedBrowser VersionDRM supported
Android WebviewNo supportNo supportNo supportNo support
Chrome for Android30mp4, WebM42Widevine
Edge Mobile    
Firefox Mobile (Gecko)41mp4, WebMNo supportNo support
IE Mobile    
Opera Mobile30WebMNo supportNo support
Safari MobileNo supportNo supportNo supportNo 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:101 次

字数:7917

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文