Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@videojs/http-streaming

Package Overview
Dependencies
Maintainers
18
Versions
157
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

  • 2.9.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
387K
decreased by-17.68%
Maintainers
18
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

FAQs

Package last updated on 22 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc