Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media is played for duration of previous file #15

Open
pavelmarko opened this issue Jun 26, 2019 · 2 comments
Open

Media is played for duration of previous file #15

pavelmarko opened this issue Jun 26, 2019 · 2 comments

Comments

@pavelmarko
Copy link

It's not easy to put it down in words, but this is what I mean:

bug

Notice how the second and third time 5_Sec_video.mp4 is played, the duration remains at 11 second.

By changing the sleep time from 0.25 to 1 in

vlcscheduler.py
if play_duration == 0: await asyncio.sleep(0.25) play_duration = player.status().get('length', 0)

This issue seems to be solved (play duration matches file duration)
image

PS: First I tried asyncio.sleep(0.5) but the issue still occurred, although not as frequently

@EugeneDae
Copy link
Owner

Thanks. This seems to be a very common issue among Windows users of VLC Scheduler. I guess I should make sleep duration a setting.

@Anthony-TMH
Copy link

I'm having this same issue on MacOS (HighSierra)

[13:49:59] Playing /Users/USER/GoogleDrive/VLC_Scheduler/Bulletins/1600/FILE-ONE.mp4 for 168 seconds. [13:52:47] Playing /Users/USER/GoogleDrive/VLC_Scheduler/LongForm/Interviews/FILE-TWO.mp4 for 168 seconds. [13:55:36] Playing /Users/USER/GoogleDrive/VLC_Scheduler/Bulletins/1600/FILE-ONE.mp4 for 168 seconds.

FILE-TWO.mp4 is 4 min 6 seconds long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants