webRTC How to force PLI packet sent from javascript web app client?

560 views Asked by At
I am streaming webRTC from a server to a web client successfully using code adapted from this jsfiddle: 

https://jsfiddle.net/z7ms3u5r/

I need the javascript client to send Picture Loss Indicator (PLI) packets in order to inform the server to form a keyframe (i-frame). Is there a way to force the javascript webRTC client to send a PLI to the server?

1

There are 1 answers

3
Sean DuBois On

Unfortunately you can't using WebRTC media APIs.

If you are using Pion (where that gist comes from) I would send the PLI via the DataChannel. Then you can easily craft+send one in Go!