Hi Henrik,
I'm disposing the peerconnection after 2 sec of ice-disconnected state. After the i'm creating a new peerconnection then adding the same media stream.
I'm getting the following error when setting the mediastream in second peerconnection after the first one is disposed.
PID: 17677
java.lang.IllegalStateException: MediaStreamTrack has been disposed.
at org.webrtc.MediaStreamTrack.checkMediaStreamTrackExists(MediaStreamTrack.java:120)
at org.webrtc.MediaStreamTrack.getNativeMediaStreamTrack(MediaStreamTrack.java:114)
at org.webrtc.AudioTrack.getNativeAudioTrack(AudioTrack.java:28)
at org.webrtc.MediaStream.addTrack(MediaStream.java:33)
Please check this.
Thanks in advance
Regards,
Phil.
On Friday, December 6, 2019 at 2:08:15 PM UTC+5:30, Henrik Andreasson wrote:
File an issue
here and provide more details.
- Callstack
- How to reproduce
- Can you bisect and find a working/non-working version
Hi,
I'm developing video calling app on android. It is getting crashes when disposing the mediastream. Earlier i'v added tracks directly in peerconnection. Now I've changed by adding media stream in peerconnection. When disposing the peerconnection and factory. It is getting crashed.
Pls anyone help. Thanks in Advance.
Regards,
Phil.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.