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

video play is delayed #208

Open
IISI-1512010 opened this issue Sep 6, 2024 · 2 comments
Open

video play is delayed #208

IISI-1512010 opened this issue Sep 6, 2024 · 2 comments

Comments

@IISI-1512010
Copy link

I play one flv live stream with mpegts.
the 0 ~10 seconds, it play well.
but when I suspend the websocket connection for 10 seconds in websocket.
and resume the transport from server to client.

the client keep playing, but the video in the screen is delayed about for 10 seconds.
and the play bar has been at the newest time line.

I am sure the video frames delayed has been flushed to the client.
the browser debug console show that the number of message received during 21 ~ 22 seconds
is ten more than average in normal.

ther mpegts.version is 1.7.3
var player = mpegts.createPlayer({
type: 'flv', // could also be mpegts, m2ts, flv
isLive: true,
url: url.value
});

is there any configuration resolved it, thanks.

@Greasen
Copy link

Greasen commented Oct 21, 2024

liveBufferLatencyChasing: true

@yanhua1012
Copy link

I have applied play option as follows:
var player = mpegts.createPlayer({
type: 'flv', // could also be mpegts, m2ts, flv
isLive: true,
liveSync: true,
liveBufferLatencyChasing: true,
liveBufferLatencyChasingOnPaused: true,
enableStashBuffer: false,
url: url.value
});
but the video in the screen is still delayed about for 6 seconds.

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

3 participants