DLGPlayer icon indicating copy to clipboard operation
DLGPlayer copied to clipboard

DLGPlayer.play() not starting video automatically

Open ggschelling opened this issue 6 years ago • 4 comments

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 avatar Apr 30 '18 13:04 ggschelling

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.

DeviLeo avatar May 04 '18 06:05 DeviLeo

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?

ggschelling avatar May 04 '18 12:05 ggschelling

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 avatar May 04 '18 13:05 DeviLeo

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

tolew1 avatar Mar 09 '19 19:03 tolew1