Closed f0k closed 1 year ago
Thanks for the fix! Can’t find the flags either, but you can just make a module-level GST_PLAYFLAGS_AUDIO
constant that points to the doc page you linked.
Figured out how to inspect for the flag values.
Merged in 3a2726750e5c31edc040a932100b1c64e230ce02. I reworked the introspection commit to have some fallbacks as all the __
-guarded values aren’t exactly public API.
The current implementation of
mute()
for the gstreamer backend sets the'mute'
property of the playbin. However, this seems to be completely ignored, at least while in theREADY
orPAUSED
state. (Maybe it would work in thePLAYING
state, I haven't tried.)This PR goes a different route by completely disabling or enabling audio for the playbin via its
'flags'
property. This works fine in theREADY
state and fixes #277. I haven't been able to figure out whether the0x02
constant lives under some name in Python land.Disclaimer: I haven't tested whether this also works in the
PAUSED
orPLAYING
state, asmute()
is currently only called upon initialization of a document page, as far as I know.