Skip to content

Commit

Permalink
report available bitrates to flowplayer
Browse files Browse the repository at this point in the history
commented for now, just to give some hints
related to mangui#124
  • Loading branch information
mangui authored and stevemayhew committed May 18, 2015
1 parent 2e40776 commit 33bd575
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/org/mangui/flowplayer/HLSStreamProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,23 @@
_isManifestLoaded = true;
_clip.duration = _duration;
_clip.stopLiveOnPause = false;
/*
var nbLevel = event.levels.length;
if (nbLevel > 1) {
var bitrates : Array = new Array();
for (var i : int = 0; i < nbLevel; i++) {
var info : Object = new Object();
var level : Level = event.levels[i];
info.bitrate = level.bitrate;
info.url = level.url;
info.width = level.width;
info.height = level.height;
info.isDefault = (i == _hls.startlevel);
bitrates.push(info);
}
_clip.setCustomProperty("bitrates", bitrates);
}
*/
_clip.dispatch(ClipEventType.METADATA);
_seekable = true;
// if (_hls.type == HLSTypes.LIVE) {
Expand Down

0 comments on commit 33bd575

Please sign in to comment.