I have a video stream using the UDP protocol, accessible through either rtp://ipadd:port
or udp://@:port
. I have absolutely no control over the server, so I can't change it to serve the stream over a WebSocket or transcode it to a compatible format on-the-fly.
I want to display the stream in an Electron app, however the sources I have found from a Google search all tell me that what I wish to accomplish requires me to put together an undesirably hacky solution using something like webchimera.js
, for example.
I have tried dropping the URL in a <video>
tag as per this answer, but Electron says that the udp
and rtp
URL schemes are not recognized. I have also tried require('child_process').exec
with a static build of ffplay
, which works, but it displays the stream on a whole separate window, which is not what I want. ActiveX, NPAPI, and other plugin solutions are not an option because Electron does not support them.
Am I out of luck, or is there a solution that I haven't come upon yet?