Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Streaming #112

Open
krauthaufen opened this issue Jul 6, 2022 · 1 comment
Open

Live Streaming #112

krauthaufen opened this issue Jul 6, 2022 · 1 comment

Comments

@krauthaufen
Copy link

krauthaufen commented Jul 6, 2022

Hey, I'm using JMuxer for live-streaming rendered images from a server and it works pretty well so far.
To be clear: I'm controlling the camera/etc. on the client, render images on a server, encode them and send them back to the client via a WebSocket. When running locally on a Google Chrome I end up having about 10-80ms delay between inputs and a new video-frame which is totally acceptable for my application.

However I have some compatibility problems I can't solve:

  1. Firefox seems to buffer 1s of video before it starts playing (the delay decreases over some time)
  2. In some scenarios (pausing JS in the debugger, etc.) it sometimes"accumulates" a frame-delay that I can't remove via setting currentTime

The options I'm using are:

jmuxer = new JMuxer({
    node: 'player',
    mode: 'video', 
    debug: false,
    flushingTime: 0,
    clearBuffer: true,
    maxDelay: 0.05,
    fps: 60
});

Can anyone help me here?

@m0rt3nlund
Copy link

I have the same problem and ended up with setting up an interval that called cancelDelay function..
Works, but I do not think this is ideal.. Would be happy to see another way to do it! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants