popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.01k stars 334 forks source link

Toggle --loop after playback has started via DBus #668

Open superlou opened 5 years ago

superlou commented 5 years ago

Is it possible to have OMXPlayer enable and disable the --loop functionality after launch and during playback? I am using OMXPlayer in a live application where the user may decide to stop looping after playback has started.

Looking at how EOF is handled, is this just a matter of setting m_bool, or are there other steps that must be taken to get seamless playback?

dronus commented 5 years ago

Implemented by #679 , adding DBUS command SetLoop, feel free to merge.

dronus commented 5 years ago

Currently #679 implements DBUS command only, but as it is internally by a KeyConfig ACTION it is just missing a code line to assign a key and some update to the README describing this new command.