CyTube/player/livestream.com.coffee

24 lines
818 B
CoffeeScript
Raw Normal View History

2015-07-05 21:00:59 +00:00
window.LivestreamPlayer = class LivestreamPlayer extends EmbedPlayer
2015-06-16 16:50:17 +00:00
constructor: (data) ->
if not (this instanceof LivestreamPlayer)
return new LivestreamPlayer(data)
@load(data)
load: (data) ->
2015-07-05 21:00:59 +00:00
if LIVESTREAM_CHROMELESS
data.meta.embed =
src: 'https://cdn.livestream.com/chromelessPlayer/v20/playerapi.swf'
tag: 'object'
params:
flashvars: "channel=#{data.id}"
else
data.meta.embed =
src: "https://cdn.livestream.com/embed/#{data.id}?\
layout=4&\
color=0x000000&\
iconColorOver=0xe7e7e7&\
iconColor=0xcccccc"
tag: 'iframe'
super(data)