Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Commit

Permalink
fix RTMP buffered() (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsev authored Apr 28, 2017
1 parent a6e4fdd commit d96a540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/videojs/providers/RTMPVideoProvider.as
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ package com.videojs.providers{
}

public function get buffered():Array{
if(duration > 0){
return [[0, duration]];
if(_metadata != null && _metadata.duration != undefined && _metadata.duration > 0){
return [[0, _metadata.duration]];
}
else{
return [];
Expand Down

0 comments on commit d96a540

Please # to comment.