DLGPlayer
DLGPlayer copied to clipboard
DLGPlayer.play() not starting video automatically
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.
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.
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?
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.
I don't see any improvement when those settings are changed. It only starts to stall the video.