Git Product home page Git Product logo

javascript-hls's Introduction

JavaScript HTTP Live Streaming

Date: 12/18 2016

基于 HTML5 新增特性 MSE(Media Source Extensions) 实现的音视频媒体播放器。

MSE 目前支持的流格式:

  1. MSE-FORMAT-ISOBMFF , ISO BMFF Byte Stream Format
  2. MSE-FORMAT-MP2T , MPEG-2 Transport Streams Byte Stream Format
  3. MSE-FORMAT-WEBM , WebM Byte Stream Format
  4. MSE-FORMAT-MPEG-AUDIO , MPEG Audio Byte Stream Format

Media Source Extensions Byte Stream Format Registry :

// https://cconcolato.github.io/media-mime-support/
// https://wiki.whatwg.org/wiki/Video_type_parameters#Video_Codecs_2

// ISO BMFF Byte Stream Format
window.MediaSource.isTypeSupported('video/mp4');
window.MediaSource.isTypeSupported('audio/mp4');
window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'); // AVC_BASELINE
window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.4D401E, mp4a.40.2"'); // AVC_MAIN
window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.64001E, mp4a.40.2"'); // AVC_HIGH
// WARN: mp4 with no fragments, should rebuild mp4 box
window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.640028"');
window.MediaSource.isTypeSupported('video/mp4; codecs="mp4v.20.9"');
window.MediaSource.isTypeSupported('audio/mp4; codecs="mp4a.40.2"');
window.MediaSource.isTypeSupported('video/3gpp2; codecs="sevc, s263"');

// WebM Byte Stream Format
window.MediaSource.isTypeSupported('video/webm');
window.MediaSource.isTypeSupported('audio/webm');
window.MediaSource.isTypeSupported('video/webm; codecs="vp8, vorbis"');
window.MediaSource.isTypeSupported('video/webm; codecs="vp8, opus"');
window.MediaSource.isTypeSupported('video/webm; codecs="vp9, vorbis"');
window.MediaSource.isTypeSupported('video/webm; codecs="vp9, opus"');

window.MediaSource.isTypeSupported('video/webm; codecs="vorbis"');
window.MediaSource.isTypeSupported('audio/webm; codecs="vorbis"');
window.MediaSource.isTypeSupported('video/webm; codecs="opus"');
window.MediaSource.isTypeSupported('audio/webm; codecs="opus"');

// MPEG-2 Transport Streams Byte Stream Format
// window.MediaSource.isTypeSupported('video/mp2t');
// window.MediaSource.isTypeSupported('audio/mp2t');
window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');

// MPEG Audio Byte Stream Format
window.MediaSource.isTypeSupported('audio/mpeg');
window.MediaSource.isTypeSupported('audio/aac');

// MP3 (chrome)
window.MediaSource.isTypeSupported('audio/mp4; codecs="mp3"');

Apple HLS:

ISO MPEG-DASH:

  • ISO MPEG-DASH , MPEG DASH (Dynamic Adaptive Streaming over HTTP, ISO/IEC 23009-1)

Microsoft Smooth Streaming:

Adobe HDS (HTTP Dynamic Streaming):

PlayList Format:

ISO Base Media File Format

javascript-hls's People

Contributors

luozijun avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rk-forfuns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.