ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.23k stars 618 forks source link

Customer Investigation case - DataChannel and Gstreamer pipeline #5670

Closed mekya closed 10 months ago

mekya commented 11 months ago

Customer is trying to publish the data channel stream using the Gstreamer pipeline.

Stream is working fine while using the below snapshot version. _Enterprise Edition 2.7.0-SNAPSHOT 202308251241

Stream is not working fine one of the recent or latest snapshot version. _Enterprise Edition 2.7.0-SNAPSHOT 202309120928

Below are the error logs:

root@test-ant-vm:/home/wohler/data_channel# ./antMediaPublisher
MavricStreams: Host ovh36.antmedia.io
MavricStreams: Port 5443
MavricStreams: WS_AudioStream_Endpoint /WebRTCAppEE/websocket
MavricStreams: Stun_Server
MavricStreams: Turn_Server
URL wss://ovh36.antmedia.io:5443/WebRTCAppEE/websocket
start main loop
websocket conected
Incoming message {"streamId":"datastream","subscriberId":null,"command":"start"}
starting the pipeline
Creating negotiation offer
*************** Data channel Created  *****************
Negotiation offer created:
v=0
o=- 3927099905110657510 0 IN IP4 0.0.0.0
s=-
t=0 0
a=ice-options:trickle
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 0.0.0.0
a=setup:actpass
a=ice-ufrag:hhWGn0/cvYDEp0t51zMZWHdpdMx1e1Sy
a=ice-pwd:avqeAlFevLXlN91aggxLWT3SuoVQ0BSP
a=mid:application0
a=sctp-port:5000
a=fingerprint:sha-256 0F:B4:6F:C2:53:82:BA:7F:71:C7:4C:5E:B7:60:4F:C4:4C:1E:9F:C3:4B:03:2E:A4:AB:4D:19:E5:54:94:D1:B4

sdp send {"command":"takeConfiguration","streamId":"datastream","type":"offer","sdp":"v=0\r\no=- 3927099905110657510 0 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=ice-options:trickle\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=setup:actpass\r\na=ice-ufrag:hhWGn0/cvYDEp0t51zMZWHdpdMx1e1Sy\r\na=ice-pwd:avqeAlFevLXlN91aggxLWT3SuoVQ0BSP\r\na=mid:application0\r\na=sctp-port:5000\r\na=fingerprint:sha-256 0F:B4:6F:C2:53:82:BA:7F:71:C7:4C:5E:B7:60:4F:C4:4C:1E:9F:C3:4B:03:2E:A4:AB:4D:19:E5:54:94:D1:B4\r\n"}

(antMediaPublisher:623251): GLib-GObject-CRITICAL **: 17:49:50.657: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Incoming message {"streamId":"datastream","subscriberId":null,"definition":"publish_started","command":"notification"}
Notifcation from Server {"streamId":"datastream","subscriberId":null,"definition":"publish_started","command":"notification"}
Incoming message {"streamId":"datastream","subscriberId":null,"definition":"notSetRemoteDescription","command":"error"}
Error: Error from Server {"streamId":"datastream","subscriberId":null,"definition":"notSetRemoteDescription","command":"error"}
USAMAWIZARD commented 10 months ago

Problem was solve from gstreamer pipeline max-bundle was missing in SDP negotiations in user's signalling after I added it worked we have provided he updated program to user.