All Projects → SRGSSR → videojs-hlsjs

SRGSSR / videojs-hlsjs

Licence: MIT license
HLS playback plugin for videojs

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to videojs-hlsjs

P2P-DPlayer
DPLayer powered by CDNBye P2P Engine
Stars: ✭ 63 (+142.31%)
Mutual labels:  hls, hlsjs
Vue Videojs Demo
Use video.js & vue to play RTMP && HLS streams && playback
Stars: ✭ 275 (+957.69%)
Mutual labels:  hls, videojs
hlsjs-upimg-wrapper
The upimg decoder module for hls.js
Stars: ✭ 19 (-26.92%)
Mutual labels:  hls, hlsjs
Vue Video Player
🎞 @videojs component for @vuejs
Stars: ✭ 4,026 (+15384.62%)
Mutual labels:  hls, videojs
Wjplayer
Video.js bundle that supports HLS, VAST/VMAP, 360-degree videos, and more.
Stars: ✭ 55 (+111.54%)
Mutual labels:  hls, videojs
Html5 Dash Hls Rtmp
🌻 HTML5播放器、M3U8直播/点播、RTMP直播、低延迟、推流/播流地址鉴权
Stars: ✭ 1,805 (+6842.31%)
Mutual labels:  hls, videojs
P2P-CKPlayer
嵌入P2P引擎的CKPlayer,视频网站省流量&加速神器
Stars: ✭ 49 (+88.46%)
Mutual labels:  hls, hlsjs
Gohls
A server that exposes a directory for video streaming via web interface
Stars: ✭ 409 (+1473.08%)
Mutual labels:  hls, videojs
Video.js
Video.js - open source HTML5 & Flash video player
Stars: ✭ 32,478 (+124815.38%)
Mutual labels:  hls, videojs
Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+41403.85%)
Mutual labels:  hls, hlsjs
Videojs Contrib Hls
HLS library for video.js
Stars: ✭ 2,723 (+10373.08%)
Mutual labels:  hls, videojs
videojs-logo
A video.js plugin to display a logo image on the player. If you think it's good, give me a star! ⭐
Stars: ✭ 19 (-26.92%)
Mutual labels:  videojs
megacubo
A intuitive, multi-language and cross-platform IPTV player. Available for Windows, Android, Linux & macOS.
Stars: ✭ 134 (+415.38%)
Mutual labels:  hls
videojs-plus
An extension and skin for video.js
Stars: ✭ 49 (+88.46%)
Mutual labels:  videojs
demuxer
A tool for demux ts/mp4/flv by typescript. Support HEVC/AVC/AAC codec
Stars: ✭ 108 (+315.38%)
Mutual labels:  hls
hlsq
A small CLI for adding some color to your HLS manifests along with some basic filtering
Stars: ✭ 64 (+146.15%)
Mutual labels:  hls
hms-video-demo-android
HUAWEI Video Kit supports streaming media in 3GP, MP4, or TS format and compliant with HTTP/HTTPS, HLS, or DASH. The Kit also provides abundant playback controls, delivering personalized video experiences to users.
Stars: ✭ 22 (-15.38%)
Mutual labels:  hls
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (+134.62%)
Mutual labels:  hls
Android-hls
最近公司产品需要,调研hls(m3u8) aes-128 解密播放 . 分析 51Cto, 慕课
Stars: ✭ 73 (+180.77%)
Mutual labels:  hls
streamer
Go Package built around spinning up streaming processes
Stars: ✭ 37 (+42.31%)
Mutual labels:  hls

Videojs hls.js Plugin

An HLS plugin for video.jas based on hls.js

Videojs hls.js offers hls playback using hls.js. For more details on browser compatibility see th hls.js github page.

Getting Started

Download videojs-hlsjs and include it in your page along with video.js:

<video id="video" preload="auto" class="video-js vjs-default-skin" controls>
    <source src="http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8" type="application/vnd.apple.mpegurl">
</video>
<script src="hlsjs.min.js"></script>
<script src="video.min.js"></script>
<script src="videojs-hlsjs.min.js"></script>
<script>
    var player = videojs('video', {
        // hlsjs tech should come before html5, if you want to give precedence to native HLS playback
        // use the favorNativeHLS option.
        techOrder: ["hlsjs", "html5", "flash"]
    });
</script>

There's also a demo of the plugin that you can check out.

Changelog

  • 1.4.5: Added text and audio tracks compatibility.

Documentation

Dependencies

This project depends on:

CORS Considerations

All HLS resources must be delivered with CORS headers allowing GET requests.

Options

You may pass in an options object to the hls playback technology at player initialization.

hlsjs.favorNativeHLS

Type: Boolean

When the favorNativeHLS property is set to true, the plugin will prioritize native hls over MSE. Note that in the case native streaming is available other options won't have any effect.

hlsjs.disableAutoLevel

Type: Boolean

When the disableAutoLevel property is set to true, the plugin will completely disable auto leveling based on bandwidth and remove it from the list of available level options. If no level is specified in hlsjs.startLevelByHeight or hlsjs.setLevelByHeight the plugin will start with the best quality available when this property is set to true. Useful for browsers that have trouble switching between different qualities.

hlsjs.startLevelByHeight

Type: Number

When the startLevelByHeight property is present, the plugin will start the video on the closest quality to the specified height but the auto leveling will still be enabled unless hlsjs.disableAutoLevel was set to true. If height metadata is not present in the HLS playlist this property will be ignored.

hlsjs.setLevelByHeight

Type: Number

When the setLevelByHeight property is present, the plugin will start the video on the closest quality to the specified height. The auto leveling will be disabled but it will still be selectable unless hlsjs.disableAutoLevel was set to true. If height metadata is not present in the HLS playlist this property will be ignored.

This property takes precedence over hlsjs.startLevelByHeight.

hlsjs.hls

Type object

An object containing hls.js configuration parameters, see in detail: Hls.js Fine Tuning.

Exceptions:

  • autoStartLoad the loading is done through the preload attribute of the video tag. This property is always set to false when using this plugin.
  • startLevel if you set any of the level options above this property will be ignored.

Event listeners

This plugin offers the possibility to attach a callback to any hls.js runtime event, see the documetation about the different events here: Hls.js Runtime Events. Simply precede the name of the event in camel case by on, see an example:

var player = videojs('video', {
    hlsjs: {
        /**
         * Will be called on Hls.Events.MEDIA_ATTACHED.
         *
         * @param {Hls} hls      The hls instance from hls.js
         * @param {Object} data  The data from this HLS runtime event
         */
        onMediaAttached: function(hls, data) {
            // do stuff...
        }
    }
});

Original Author

This project was orginally forked from: videojs-hlsjs, credits to the original author.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].