Jump to content
  • 0

When/How is "play_finished" notification sent?

Lucas Nogueira


I am building a webrtc client with gstreamer. I am able to publish a stream fine.

However, I am having a hard time playing a stream that has been published.


After I set my remote description and exchange ICE candidates, I am expecting to receive a "pad-added" event on gstreamer, but before that happens, I receive a "play_finished" notification from ant media, and then I start to get a bunch of failures on gstreamer.


Any ideas why I am getting a "play_finished" when the stream is still published?

Is this some sort of timeout?

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Hey Enes, thank you for your reply.

After taking a look at the AMS logs, I noticed "onSetFailure : Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer."

I realized that it was because I was cropping the DataChannel media in the SDP offer because I was having a problem before that I thought it was related to the fact that the answer contained data channels when it wasn't supposed to contain.

I remove the code to crop the offer sdp, and it is working now.




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...