<br clear="all">Hi,<br><br>I'm trying to detect an Bus state change or EOS in a rtp stream.<br><div>Is it a bug or i'm doing this wrong? </div><div><br></div><div>I'm trying this code but can't get any bus change...<br>
</div><br><br><br>pipeAudioSend = Pipeline.launch(pipeline.toString());<br> Bus busAudioSend = pipeAudioSend.getBus();<br> busAudioSend.connect(new Bus.ERROR() {<br><br> public void errorMessage(GstObject source, int code,<br>
String message) {<br> System.out.println("Error: code=" + code + " message="<br>+ message);<br> System.out.println("Error: Source=" + source.toString<br>());<br> }<br>
});<br> busAudioSend.connect(new Bus.EOS() {<br><br> public void endOfStream(GstObject source) {<br> System.out.println("Got EOS!");<br> Gst.quit();<br> }<br>
});<br> busAudioSend.connect(new Bus.STATE_CHANGED() {<br><br> public void stateChanged(GstObject source, State old,<br>State current, State pending) {<br> if (source == pipeAudioSend) {<br>
System.out.println("Pipeline SEND state changed<br>from " + old + " to " + current);<br> }<br> }<br> });<br><br>thanks<br><br>