ACMILabs / media-player

A playlist media player prototype.
Mozilla Public License 2.0
12 stars 3 forks source link

Investigate why the sync still skips when a video is shorter than the sync time #172

Closed sighmon closed 3 years ago

sighmon commented 3 years ago

Answer: VLC returns the encoded length of the video, not the actual length of the downloaded part of the video. So we can't rely on self.vlc['player'].get_length() to return the value we need.

So let's solve #129 and then this bug will go away.

Details

When the sync server video is longer than the client video, the client keeps skipping rather than ignoring the sync command.

https://github.com/ACMILabs/media-player/blob/main/media_player.py#L579