Skip to content

Commit 0296655

Browse files
committed
Update logic
1 parent d9757d4 commit 0296655

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/streaming/controllers/StreamController.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ function StreamController() {
815815
&& playbackQuality.totalVideoFrames < 2147483647 //Handles devices (some WebKit TVs), where Video Quality API, totalVideoFrames can return the max value of a 32 bit signed integer becuase the implementation uses totalVideoFrames = mediaTime * framerate.
816816
&& playbackQuality.totalVideoFrames !== playbackQuality.droppedVideoFrames // Handles devices (some TVs), where Video Quality API, totalVideoFrames always equals the number of dropped frames.
817817
&& playbackQuality.totalVideoFrames >= totalVideoFramesAtLastPlaybackProgress // Handles devices (some WebKit TVs) where total video frames is reset if the decoder is reinitialised.
818-
&& playbackQuality.totalVideoFrames !== totalVideoFramesAtLastPlaybackProgress // Total frames should advance with time progression, if not something is wrong.
818+
&& playbackQuality.totalVideoFrames === totalVideoFramesAtLastPlaybackProgress // Total frames should advance with time progression, if not something is wrong.
819+
819820
if(isVideoFramesNotAdvancing){
820821
if((timeAtLastPlaybackProgress + settings.get().streaming.buffer.videoFramesNotAdvancing.thresholdInSeconds < event.time) && !videoFramesNotAdvancingTriggered){
821822
eventBus.trigger(Events.PLAYBACK_FROZEN,{cause:'Frames have stopped advancing, Chromium bug #41243192', totalVideoFrames: playbackQuality.totalVideoFrames, time: event.time });

0 commit comments

Comments
 (0)