Skip to content

Commit 690479e

Browse files
committed
Simplify logic
1 parent 0296655 commit 690479e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/streaming/controllers/StreamController.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,7 @@ function StreamController() {
814814
&& playbackQuality.totalVideoFrames > 0 // Handles devices (some TVs), where Video Quality API, totalVideoFrames always returns 0.
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.
817-
&& 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.
817+
&& playbackQuality.totalVideoFrames === totalVideoFramesAtLastPlaybackProgress // Total frames should advance with time progression, if not something is wrong. On some some WebKit TVs the total video frames is reset if the decoder is reinitialised.
819818

820819
if(isVideoFramesNotAdvancing){
821820
if((timeAtLastPlaybackProgress + settings.get().streaming.buffer.videoFramesNotAdvancing.thresholdInSeconds < event.time) && !videoFramesNotAdvancingTriggered){

0 commit comments

Comments
 (0)