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

DLGPlayer.play() not starting video automatically #21

Open
ggschelling opened this issue Apr 30, 2018 · 4 comments
Open

DLGPlayer.play() not starting video automatically #21

ggschelling opened this issue Apr 30, 2018 · 4 comments

Comments

@ggschelling
Copy link

ggschelling commented Apr 30, 2018

When calling .play() nothing happens visually (but I can hear the audio of a stream). When calling .play again with a delay of about 1 - 2 seconds the stream gets displayed.

My only guessI would be that it might have something to do with the buffer not triggering the playback after it's fully loaded.

@ggschelling ggschelling changed the title DLGPlayer.play() behavior a bit strange DLGPlayer.play() not starting video automatically May 1, 2018
@DeviLeo
Copy link
Owner

DeviLeo commented May 4, 2018

After play method is called, the player will buffer 2 seconds and then display.
You can change DLGPlayerMinBufferDuration value in DLGPlayer/common/DLGPlayerDef.h.

If the video is 1080p or higer, large DLGPlayerMinBufferDuration and DLGPlayerMaxBufferDuration will cause memory issue.
I know there are a lot of things to do on performance optimization, but it is hard work to me.

@ggschelling
Copy link
Author

Thanks again for the info! Performance would have been my next question. Are there any "obvious" settings I could change to try enhance performance for me?

@DeviLeo
Copy link
Owner

DeviLeo commented May 4, 2018

I'm sorry to tell you there are no settings for performance enhancement.
The player was originally developed to watching low bitrate live monitoring (rtmp and hls).
It works on ~3M bitrate perfectly but laggy on higher.

@DeviLeo DeviLeo mentioned this issue Jun 2, 2018
@tolew1
Copy link

tolew1 commented Mar 9, 2019

I don't see any improvement when those settings are changed. It only starts to stall the video.

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