Fix rtmp->rtmp transition

This commit is contained in:
calzoneman 2016-03-02 19:18:33 -08:00
parent 2bfb143c4c
commit e88031f4c5
3 changed files with 21 additions and 6 deletions

View file

@ -7,6 +7,14 @@ window.RTMPPlayer = class RTMPPlayer extends VideoJSPlayer
if not (this instanceof RTMPPlayer)
return new RTMPPlayer(data)
@setupMeta(data)
super(data)
load: (data) ->
@setupMeta(data)
super(data)
setupMeta: (data) ->
data.meta.direct =
# Quality is required for data.meta.direct processing but doesn't
# matter here because it's dictated by the stream. Arbitrarily
@ -16,5 +24,3 @@ window.RTMPPlayer = class RTMPPlayer extends VideoJSPlayer
link: data.id
}
]
super(data)