Javascript playoutDelayHint error

SLM

Member
Some clients get the following javascript error trying to play a stream:

TypeError: Failed to set the 'playoutDelayHint' property on 'RTCRtpReceiver': The provided double value is non-finite. Uncaught TypeError: Failed to set the 'playoutDelayHint' property on 'RTCRtpReceiver': The provided double value is non-finite.

User agent: Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G965F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
Device: Samsung mobile
OS: Android 10

The stream will eventually play, but the error conflicts with further javascript actions.
 

Max

Administrator
Staff member
Good day.
We raised the ticket WCS-2904 to fix it.
As workaround, set playoutDelay option to 0 while playing stream:
Code:
session.createStream(
        name: streamName,
        display: remoteVideo,
        playoutDelay: 0
        ...
).play();
 
Top