<div dir="auto">I remember reading through this. And running the commented code resulted in an error due to not having a FlagsClass which doesn't exist in the docs nor the file mentioned, which is used to get the video and audio<div dir="auto"><br></div><div dir="auto">Do you know where this class is?</div><div dir="auto">Many thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 16 Dec 2020, 13:27 Sebastian Dröge, <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On Wed, 2020-12-16 at 10:00 +0000, Michael Johnson wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">To whom it may concern,<div><br></div><div>I was invited to join here by Sebastian for discussion on problems.</div><div><br></div><div>Looking through the src and the docs it's very hard to find an instance where you can extract information about the stream info so you can switch audio streams (for example from french to english) from element::Element when using parse_launch.</div></div></blockquote><div><br></div><div>You would do that the same way as in C by using the GObject properties, signals and action signals on the playbin element.</div><div><br></div><div>The playbin example should help here: <a href="https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/blob/0.16/examples/src/bin/playbin.rs" target="_blank" rel="noreferrer">https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/blob/0.16/examples/src/bin/playbin.rs</a></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>I feel it needs some flags, but they are not documented in the rust version. Can anyone point me in the right direction?</div></div></blockquote><div><br></div><div>See the commented flags code in the example.</div><div><br></div><div>Let me know if something's still unclear after reading that code.</div><div><br></div><div><span><pre>-- <br></pre><div style="width:71ch">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank" rel="noreferrer">https://www.centricular.com</a></div><div style="width:71ch"><br></div></span></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>