CyTube/player/rtmp.coffee

24 lines
662 B
CoffeeScript
Raw Permalink Normal View History

2015-11-09 03:51:17 +00:00
window.RTMPPlayer = class RTMPPlayer extends VideoJSPlayer
2015-06-20 02:12:48 +00:00
constructor: (data) ->
if not (this instanceof RTMPPlayer)
return new RTMPPlayer(data)
2016-03-03 03:18:33 +00:00
@setupMeta(data)
super(data)
load: (data) ->
@setupMeta(data)
super(data)
setupMeta: (data) ->
2015-11-09 03:51:17 +00:00
data.meta.direct =
# Quality is required for data.meta.direct processing but doesn't
# matter here because it's dictated by the stream. Arbitrarily
# choose 480.
480: [
{
link: data.id
contentType: 'rtmp/flv'
2015-11-09 03:51:17 +00:00
}
]