JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q66218F
  • License MIT

Netless App Media Player

Package Exports

  • @netless/app-media-player
  • @netless/app-media-player/dist/main.cjs.js
  • @netless/app-media-player/dist/main.es.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@netless/app-media-player) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@netless/app-media-player

Netless App for playing video and audio files.

Usage

See playground.

m3u8 support

HLS support is provided by video-dev/hls.js.

NOTES:

  • To reduce the package size, hls.js is loaded dynamically using script tag.
  • If you do not believe in this cdn, you can prepare window.Hls before this app downloads.
  • If you do not need HLS, you can set window.Hls to false or null to disable this loading, in which case you will not able to play hls streaming unless the browser support it natively.

autoplay not working

Autoplay is generally not recommended as it is seen as a negative user experience. It is also disabled in many browsers. Before raising issues, do your homework. More info can be found here:

Licence

MIT @ netless