<div dir="auto">Another point here, connecting to the audio-stream signal and printing the current-audio yields -1 until I physically close the window when it gets the correct audio stream here<div dir="auto"><br></div><div dir="auto">Also, I imagine when I want to bind changing stream to a key press I need to emit this signal to be caught. But I can't access any data structures from the callback, so it'll always chose a constant stream. Am I missing something? here </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 17 Dec 2020, 09:46 Michael Johnson, <<a href="mailto:liquidmikerrs@gmail.com">liquidmikerrs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Ah I haven't got anything to do with the properties connected to a signal? Do you reckon that's the issue then<div dir="auto"><br></div><div dir="auto">I'm setting and getting the properties all from playing. So I can't get n-audio from playing state? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 17 Dec 2020, 08:19 Sebastian Dröge, <<a href="mailto:sebastian@centricular.com" target="_blank" rel="noreferrer">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 20:25 +0000, Michael Johnson wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto">Ah yes. Properties is highly useful. However, n-audio is by default 0, which is strange because I have 5 audio tracks</div></blockquote><div><br></div><div>Connect to the "audio-changed" signal and whenever that is emitted, check the value.</div><div><br></div><div>Before the playbin is in PAUSED state, you will always get 0 audio/video/text tracks.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="auto"><div dir="auto">Also setting </div><div dir="auto">pipeline.set_property("current-audio",&2) doesn't change the track. I'm pretty sure it's because I'm giving the wrong second argument</div></div></blockquote><div><br></div><div>Same as above, you have to set it after the playbin is PLAYING.</div><div><br></div><div><span><pre>-- <br></pre><div style="width:71ch">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer noreferrer" target="_blank">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" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
</blockquote></div>