AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://OvenMediaEngine.com/ovenplayer
MIT License
506 stars 125 forks source link

Set Playout Delay Hint #182

Closed S3-sim closed 3 years ago

S3-sim commented 3 years ago

Hi,

There is a discussion in the OvenMediaEngine git concerning RTP Playout Delay and the player side PlayoutDelayHint was mentioned. I noticed that there is a reference to this feature in the OvenPlayer code base already but I don't see a way to set it. Is it possible to set the PlayoutDelayHint in the player config?

https://github.com/AirenSoft/OvenPlayer/blob/8a56256d4f38a14566006661164e6441a9d87f79/src/js/api/provider/html5/providers/WebRTCLoader.js#L334-L348

S3-sim commented 3 years ago

Nevermind, I found that it is settable by using the following options when initializing the player.

webrtcConfig: { playoutDelayHint: " x " }

SangwonOh commented 3 years ago

@S3-sim Nice job!