/clappr-rtmp-plugin

RTMP support for Clappr player

Primary LanguageJavaScriptApache License 2.0Apache-2.0

clappr-rtmp-plugin

RTMP support for Clappr player

How to use

Import rtmp.min.js

<script type="text/javascript" src="http://cdn.jsdelivr.net/clappr.rtmp/0.0.6/rtmp.min.js">
</script>

and create Clappr Player adding the external plugin:

var player = new Clappr.Player({
      source: "rtmp://source_here", 
      parentId: "#player-wrapper", 
      plugins: {'playback': [RTMP]}
    );

Streams that has live on their URL will be handled as live streams. If not so, the plugin will play the source as VoD.