diff --git a/bin/build-player.js b/bin/build-player.js index 83bfcf14..c82605fe 100755 --- a/bin/build-player.js +++ b/bin/build-player.js @@ -23,6 +23,7 @@ var order = [ 'hls.coffee', 'twitchclip.coffee', 'peertube.coffee', + 'bitchute.coffee', 'update.coffee' ]; diff --git a/player/bitchute.coffee b/player/bitchute.coffee new file mode 100644 index 00000000..4a85139a --- /dev/null +++ b/player/bitchute.coffee @@ -0,0 +1,92 @@ +window.BitChutePlayer = class BitChutePlayer extends Player + constructor: (data) -> + if not (this instanceof BitChutePlayer) + return new BitChutePlayer(data) + + @load(data) + + load: (data) -> + @setMediaProperties(data) + @ready = false + + waitUntilDefined(window, 'playerjs', => + iframe = $('