Webrtc stream local video file
问题 How would one stream a local media file(video file) to peers?( i am using janus-gateway - videoroom plugin for this ). For audio there is webAudio, but what about the video? Thanks! Update : Maybe someone has an example? Or a small code snippet? Maybe a link to some lib? 回答1: Render the local video on Canvas & create stream object from Canvas element. And then you can add the stream to PeerConnection. Then stream will be sent to remote peer(Janus/Browser/any server). Demo: https://webrtc