Issue in webrtc to play video when in release mode - code version is (2023-06-23T04:02:24)

140 views
Skip to first unread message

Pooja Venkatesan IN

unread,
Aug 22, 2023, 6:06:45 AM8/22/23
to discuss-webrtc
Hi,

We were previously using webrtc version from commit ID 4db954eec11258d57e0d507b0436a183178dae22 in our dedicated application built over webrtc to stream videos. 
Recently upgraded the webrtc version used in the application - to webrtc code version 2023-06-23T04:02:24 (commit ID - d0c86830d00d6aa4608cd6f9970352e583f16308)

With the recent upgradation, when the dcheck_always_on is set to true in gn build command (i.e., macro RTC_DCHECK_IS_ON=1) the peerconnection is successful, onSignalingState change is happening and playback of video and audio streams is successful.

But when dcheck_always_on is set to false i.e., when switching to the release mode, its resulting in compilation errors like: "SequenceCheckerImpl::ExpectationToString() is undefined" I resolved this locally as I found that it was guarded by "RTC_DCHECK_IS_ON" macro and removed it. But after compiling successfully with this one local change, still, its failing to play the videos. The OnSignalingChange for peer is not happening at all. Because of this, we are forced to enable the debug builds.

I m suspecting it might do something with SequenceChecker class where when its using  webrtc_sequence_checker_internal::SequenceCheckerImpl it's working whereas when its using webrtc_sequence_checker_internal::SequenceCheckerDoNothing it's not working as expected. Will the RTC_DCHECK_RUN_ON(x) macro work for release mode even when the checks are ignored?

Can you please help on with the above issues and with making it work in release mode with the 23rd June 2023 code version.

Thanks,
Pooja Venkatesan

Reply all
Reply to author
Forward
0 new messages