2015-06-30 01:32:18 +00:00
|
|
|
window.HitboxPlayer = class HitboxPlayer extends EmbedPlayer
|
2015-06-21 14:27:51 +00:00
|
|
|
constructor: (data) ->
|
|
|
|
if not (this instanceof HitboxPlayer)
|
|
|
|
return new HitboxPlayer(data)
|
|
|
|
|
|
|
|
@load(data)
|
|
|
|
|
|
|
|
load: (data) ->
|
|
|
|
data.meta.embed =
|
2016-09-20 03:45:21 +00:00
|
|
|
src: "https://www.hitbox.tv/embed/#{data.id}"
|
2015-06-21 14:27:51 +00:00
|
|
|
tag: 'iframe'
|
|
|
|
super(data)
|