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

Ability to set loop after playback started #167

Closed
superlou opened this issue Dec 15, 2018 · 3 comments
Closed

Ability to set loop after playback started #167

superlou opened this issue Dec 15, 2018 · 3 comments

Comments

@superlou
Copy link

Feature Request

Description

Is it possible to set OMXPlayer's "--loop" argument after playback has already started?

Example use case

I am working on a playout system for live video production, where a Raspberry Pi is playing video to a hardware video switcher. While the video is playing, the operator may decide that the video needs to be looped in order to run long enough. My understanding is that the only way to get seamless playback from OMXPlayer is to set the "--loop" argument. Trying to catch the stop-playback event and seek to the beginning causes gaps.

However, I'm not sure that whatever flag "--loop" sets is exposed over the dbus interface, so this might simply not be possible. I've been trying to find a hack where I always launch the player with "--loop" set, but I haven't been able to reliably determine when the video is at the end of playback and stop it before showing some of the beginning again.

@willprice
Copy link
Owner

Hi There,

Sadly I don't believe this is implemented in omxplayer, so can't be exposed in this library. All the implemented methods can be found in https://github.com/popcornmix/omxplayer/blob/master/OMXControl.cpp

@superlou
Copy link
Author

Thanks, I was afraid of that. I've opened an issue on OMXPlayer to figure out what it would take to add to the player.

@willprice
Copy link
Owner

Cool, let me know if it ever gets implemented as it would be trivial to add once exposed.
Cheers.

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

2 participants