sync/player/livestream.com.coffee

18 lines
595 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) ->
2022-01-24 12:38:15 +00:00
[ account, event ] = data.id.split(';')
2021-08-20 03:44:57 +00:00
data.meta.embed =
2022-01-24 12:38:15 +00:00
src: "https://livestream.com/accounts/#{account}/events/#{event}/player?\
enableInfoAndActivity=false&\
defaultDrawer=&\
autoPlay=true&\
mute=false"
2021-08-20 03:44:57 +00:00
tag: 'iframe'
2015-07-05 21:00:59 +00:00
super(data)