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?
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!