New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@videojs/http-streaming

Package Overview
Dependencies
Maintainers
192
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@videojs/http-streaming

Play back HLS and DASH with Video.js, even where it's not natively supported

3.6.0
Source
npm
Version published
Weekly downloads
524K
-0.2%
Maintainers
192
Weekly downloads
 
Created

What is @videojs/http-streaming?

@videojs/http-streaming is a plugin for Video.js that allows you to play back HTTP-based streaming media, such as HLS (HTTP Live Streaming) and DASH (Dynamic Adaptive Streaming over HTTP). It provides a robust solution for adaptive bitrate streaming, ensuring smooth playback across various network conditions.

What are @videojs/http-streaming's main functionalities?

HLS Playback

This feature allows you to play HLS streams using Video.js. The code sample demonstrates how to set the source of the video player to an HLS playlist.

const player = videojs('my-video');
player.src({
  src: 'https://example.com/path/to/your/hls/playlist.m3u8',
  type: 'application/x-mpegURL'
});

DASH Playback

This feature enables DASH streaming support. The code sample shows how to configure the video player to use a DASH manifest.

const player = videojs('my-video');
player.src({
  src: 'https://example.com/path/to/your/dash/manifest.mpd',
  type: 'application/dash+xml'
});

Adaptive Bitrate Streaming

This feature ensures smooth playback by automatically adjusting the video quality based on the user's network conditions. The code sample demonstrates how to access the selected bitrate.

const player = videojs('my-video');
player.src({
  src: 'https://example.com/path/to/your/stream.m3u8',
  type: 'application/x-mpegURL'
});
player.on('loadedmetadata', function() {
  console.log('Bitrate:', player.tech().hls.selectPlaylist().attributes.BANDWIDTH);
});

Other packages similar to @videojs/http-streaming

Keywords

videojs

FAQs

Package last updated on 25 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts