Created
July 11, 2016 10:04
-
-
Save tchakabam/053a0cc502c8f5f12ac48de266c305b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Hls = require('hls.js'); | |
var P2PWrapper = require('hlsjs-p2p-wrapper'); | |
... | |
// creating Hls.js instance via wrapper vs classic instantiation via constructor | |
var hls = withP2P ? new P2PWrapper(Hls).createPlayer(myHlsjsConfig, myP2PConfig) : new Hls(myHlsjsConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment