WebRTC: Control Playout Delay

Hello, we are using Unity WebRTC package to broadcast and receive video stream (without sound) between Unity apps and low latency is quite crucial for us.

Is there any way we can set the Playout Delay WebRTC parameter to 0 to ideally play the frame as soon as possible in the receiver app?

I have not heard Playout Delay. It looks interesting. We don’t support the feature but I would add it into the schedule if it is important.

1 Like

Thanks for the clarification that it’s not currently supported. As it’s mentioned at the bottom of the documentation, being able to set some lower value can be handy for some scenarios. For example like our case, when low latency is more crucial than possible increased number of dropped frames.

Thank you for your situation.

Playout delay has not been standlize by W3C yet.
https://github.com/w3c/webrtc-pc/issues/2213

Maybe almost browsers don’t support the feature. We need to check that many developers keep to support the feature for long term.

I noticed Unity adds about 100ms delay over what I see in chrome/firefox (rough estimate with same stream, two connections, displaying timestamps in the video and making a screenshot).

Is there any way to control playback delay if there is no audio?

We are making the new version of Unity Render Streaming which contains availability of configuring of video streaming.

Will this also be available int he raw webrtc package? We do not use render streaming, we’re piping camera images direclty into Unity for a mixed reality application

Please check the “Bandwitdh” scene in the package sample.
https://docs.unity3d.com/Packages/com.unity.webrtc@2.4/manual/sample.html

Interested in this feature too