go2rtc
go2rtc copied to clipboard
Help with WebRTC configuration
Hello, I'm trying to write an echo script to fetch the stream of my camera via WebRTC.
I have the following details returned by the API I'm calling:
{ "result":{ "audio_attributes":{ "call_mode":[ 1, 2 ], "hardware_capability":[ 1, 2 ] }, "auth":"AUTH_REDACTED", "id":"bf868d7b9a0e88ad5axl9h", "moto_id":"signaling14896", "p2p_config":{ "auth":"AUTH_REDACTED", "ices":[ { "urls":"stun:18.158.206.187:3478" }, { "credential":"CRED_REDACTED", "ttl":36000, "urls":"turn:35.207.170.65:3478", "username":"abc:def" } ], "moto_id":"signaling14896" }, "protocol_version":"2.2", "skill":"{"webrtc":115,"audios":[{"channels":1,"dataBit":16,"codecType":101,"sampleRate":8000}],"videos":[{"streamType":2,"profileId":"","width":1920,"codecType":2,"sampleRate":90000,"height":1080},{"streamType":4,"width":640,"codecType":2,"sampleRate":90000,"height":360}]}", "support_webrtc_record":true, "supports_webrtc":true, "vedio_clarity":4, "vedio_claritys":[ 2, 4 ] }, "success":true, "t":1725893602947, "tid":"42b2cf9d6ebb11efb77736033862a1ba" }
Could you provide me with an GO2RTC stream config that would work with this information? I'm sorry but I couldn't find it myself...
Thanks in advance!! Azerty