admin 管理员组文章数量: 1086019
I am working on a WebRTC-based telco app. When negotiating the connection I get the local media streams, and the requirements define that the user enters a room by default without outgoing media, so I disable both streams:
val peerConnection = PeerConnection()
val streams =
MediaDevices.getUserMedia(
audio = true,
video = true
)
streams.tracks.forEach {
it.enabled = false
peerConnection.addTrack(it)
}
(using webrtc-kmp lib).
Later on, when the user chooses to show their video stream, I set the enabled
flag on the video stream to true and I am getting an error from the server:
WebRtcEndpoint error:Error code 1: Internal data stream error.,
source: nicesrc66,
element: kmswebrtcendpoint66,
debug info:
../libs/gst/base/gstbasesrc.c(3177): gst_base_src_loop ():
/GstPipeline:pipeline64/KmsWebrtcEndpoint:kmswebrtcendpoint66/KmsWebrtcSession:kmswebrtcsession66/KmsWebrtcTransportSrcNice:kmswebrtctransportsrcnice66/GstNiceSrc:nicesrc66:
streaming stopped, reason not-linked (-1).
After this error the PeerConnection object on the client side becomes disconnected and the media exchange stops. The same happens if I don't get the local stream on negotiation (but still set the media sendrecv in the SDP offer) but only on enabling the outgoing video and adding it with replaceTrack(...)
on the appropriate Sender.
The client side peer connection is set to two-way (sendrecv
). I am not getting any negotiationNeeded events on the client (Kurento does not support renegotiation AFAIK), and on opening the connection I see both Audio flowIn and Video flowIn events.
Is enabling/disabling (video) of streams supported by Kurento, and if it is, am I missing something?
本文标签: enabling disabling and replacing WebRTC tracks after negotiation against KurentoStack Overflow
版权声明:本文标题:Enabling, disabling and replacing WebRTC tracks after negotiation against Kurento - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1741920829a2322698.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论