This package is for distribution on npm
.
NanoCore - nanoStream h5live player
Description
The Core of the H5Live Player Javascript Client for plugin-free low-latency playback in Web Browsers and Apps. It can be included via script tag or requirejs.
This package contains the nanocore.min.js (including a flash fallback functionality) and the nanocore.h5live.min.js (h5live only).
Installation
This is a web-based low-latency javascript player client available through the npm registry.
Installation is done using the npm install
command:
$ npm install tntesting2
Quick Start
After the installation include the nanocore.min.js via script tag:
<div id="playerDiv" class="player"></div><script type="text/javascript" src="./node_modules/nanocore/nanocore.min.js"></script><script type="text/JavaScript"> var player; var config = "source": "h5live": "server": "websocket": "wss://h5live.nanocosmos.de:443/h5live/stream" "hls": "https://h5live.nanocosmos.de:443/h5live/http/playlist.m3u8" "progressive": "https://h5live.nanocosmos.de:443/h5live/http/stream.mp4" "rtmp": "url": "rtmp://your.server.com/live" "streamname": "yourStream" "playback": "autoplay": true "muted": true ; document;</script>
or via requirejs:
<div id="playerDiv" class="player"></div><script type="text/javascript" src="./path/to/require.js"></script><script type="text/javascript"> var player; var config = "source": "h5live": "server": "websocket": "wss://h5live.nanocosmos.de:443/h5live/stream" "hls": "https://h5live.nanocosmos.de:443/h5live/http/playlist.m3u8" "progressive": "https://h5live.nanocosmos.de:443/h5live/http/stream.mp4" "rtmp": "url": "rtmp://your.server.com/live" "streamname": "yourStream" "playback": "autoplay": true "muted": true ; requirejs; ;</script>
Release History
Docs (NanoPlayer)
This docs are for the whole NanoPlayer. They match also for the NanoCore excluding the view (config.style is not present).