Skip to content

BemTV peer-to-peer plugin for Clappr Player (HTTP Live Streaming, HLS, WebRTC, P2P)

License

Notifications You must be signed in to change notification settings

anupam11/clappr-p2phls-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BemTV Plugin for Clappr Media Player

This plugin adds peer-to-peer powers for HTTP Live Streaming (HLS) transmissions on Clappr Player.

BemTV P2PHLS

Try it now!

Visit BemTV with a modern browser and try it by yourself.

How to Use

  <head>
    <script type="text/javascript" src="http://bem.tv/p2phls.js"></script>
    <script type="text/javascript" src="http://bem.tv/p2phlsstats.js"></script>
  </head>
  <body>
    <div id="player-wrapper"></div>
    <script>
      var playerElement = document.getElementById("player-wrapper");
      var player = new WP3.Player({
				sources: ['http://cdn.bem.tv/stream/soccer2sec/playlist.m3u8'],
				plugins: {
						playback: [P2PHLS],
						container: [P2PHLSStats]
				},
				width: 640, height: 360,
				poster: "http://www.bem.tv/assets/poster.png",
				watermark: "http://bem.tv/assets/watermark3.png"
			});      
			player.attachTo(playerElement);
    </script>
  </body>

Author

Flávio Ribeiro (flavio@bem.tv)

BemTV

About

BemTV peer-to-peer plugin for Clappr Player (HTTP Live Streaming, HLS, WebRTC, P2P)

Resources

License

Stars

Watchers

Forks

Packages