mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
13 lines
363 B
CoffeeScript
13 lines
363 B
CoffeeScript
|
|
window.SmashcastPlayer = class SmashcastPlayer extends EmbedPlayer
|
||
|
|
constructor: (data) ->
|
||
|
|
if not (this instanceof SmashcastPlayer)
|
||
|
|
return new SmashcastPlayer(data)
|
||
|
|
|
||
|
|
@load(data)
|
||
|
|
|
||
|
|
load: (data) ->
|
||
|
|
data.meta.embed =
|
||
|
|
src: "https://www.smashcast.tv/embed/#{data.id}"
|
||
|
|
tag: 'iframe'
|
||
|
|
super(data)
|