videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.51k stars 7.4k forks source link

Play from websocket stream #7649

Open Nafidinara opened 2 years ago

Nafidinara commented 2 years ago

Hello, can use this to play from websocket stream?

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

misteroneill commented 2 years ago

Not out of the box. You'd need a specific tech or source handler for WebSockets support. I did a quick search on Google and didn't find one, but if you do find one (or write one!) it would be helpful to share it here!

mattilaiatostek commented 2 years ago

I have been planning the same. The server component could send RTP packets extracted from RTSP-stream via websocket, but the javascript client would need some logic to pass H264 data from RTP packets to video.js. Is this possible?

The use case for this is low latency streaming for safety control and camera rotation, HLS conversion is not low latency enough.

EDIT: Got this working with jMuxer, it can mux raw H264 stream to MP4 which is then appened to MSE.

xiaoxiaohuayu commented 1 year ago

Has anyone solved this problem? I also met. Hope to solve the people can give solutions