Comments (3)
@indus i know you asked this a long time ago but for anyone stumbling on this now. You can use JSMPEG with socket.io! See my gist here https://gist.github.com/moeiscool/e2a584cca6f4e3f1691a96b6c56856f9
I modified the library to work as a pipe. https://github.com/ShinobiCCTV/jsmpeg-pipe So we can write data as we are emitted it from socket.io
from jsmpeg.
Narf. Finding the cause for such memory leaks is notoriously difficult. I'll look into it. However, it doesn't seem to be that bad - judging from your screenshot, it only rises about ~2mb in 10minutes :)
To solve the other problem, you could close()
the WebSocket (and maybe throw the jsmpeg instance away altogether) when the page is hidden and reconnect/recreate when it becomes visible again. Support for the page visibility API is quite good, but it's still a bit of a pain to use with all the vendor prefixes currently.
from jsmpeg.
using visibility API to kill the stream instance sounds ok. Thanks.
Just another short question: I already have a socket.io server running in my project. It spreads some realtime GPS-positions to a handfull clients. Do you think its better to integrate the video-streaming into the existing "socket.io"-server, and avoid a second websocket-server?... or to run them separately side-by-side?
from jsmpeg.
Related Issues (20)
- JSMpeg not playing audio when websocket stream is used
- Video speed up when playing with custom websocket
- webgpu HOT 1
- How to change the url of the player? HOT 1
- How can i repaint?
- how to use jsmpeg.player output in object detection code. HOT 1
- Video frozen in WebXR immersive mode on Oculus Browser HOT 3
- use environment problem HOT 1
- about progress bar HOT 1
- Live Video, no longer works HOT 1
- re-write
- Removed canvas deletion function due to destroy() HOT 1
- Error submitting a packet to the muxer: Error number -10053 occurred HOT 2
- Problem switching videos HOT 2
- implement python lib for decode and display the video HOT 2
- Is it feasible to perform YUV format conversion on the server side? HOT 2
- I want to add some other things, but I will make an error when recompiling HOT 1
- Is decoding performed on the client(jsmpeg.min.js) or the server(node-rtsp-web)? HOT 1
- Can Browser hangs be solved on Error "Too large macroblock_address_increment"
- ‘player.audioOut.unlock’ will accelerate video playback speed on IOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsmpeg.