Skip to content

Commit da09f30

Browse files
committed
Map HLS.currentLevel as level
This saves us from having to change IProvider interface with possibly needless currentLevel and nextLevel bindings. This also lowers the boundry for implementing this interface for HTML5 tech.
1 parent 137cec3 commit da09f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/videojs/providers/HLSProvider.as

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ package com.videojs.providers{
544544
*/
545545
public function get level():int
546546
{
547-
return _hls['level'];
547+
return _hls.currentLevel;
548548
}
549549

550550
/**
@@ -554,7 +554,7 @@ package com.videojs.providers{
554554
*/
555555
public function set level(pLevel:int):void
556556
{
557-
_hls['level'] = pLevel;
557+
_hls.currentLevel = pLevel;
558558

559559
// For reflecting new level from the next segment. Otherwise, new setting is applied only after currently buffered data is gone.
560560
if (!isNaN(_position) && pLevel != -1) {

0 commit comments

Comments
 (0)