flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Initial Delay - Black screen for few seconds

Open Nandhu-89 opened this issue 1 year ago • 1 comments

I am using vlcplayer to play live rtsp stream. Initially vlcplayer displays black screen for few seconds(5 to 10 seconds).How can I overcome or reduce this delay. Below is my code

_videoPlayerController = VlcPlayerController.network( videoStreamURL ?? '', hwAcc: HwAcc.auto, autoPlay: true, options: VlcPlayerOptions( rtp: VlcRtpOptions([VlcRtpOptions.rtpOverRtsp(true)],), advanced: VlcAdvancedOptions([ VlcAdvancedOptions.networkCaching(1000), VlcVideoOptions.dropLateFrames(false), VlcAdvancedOptions.liveCaching(1000), VlcAdvancedOptions.clockJitter(0), VlcAdvancedOptions.clockSynchronization(0), VlcAdvancedOptions.fileCaching(1000), VlcStreamOutputOptions.soutMuxCaching(1000),

                  ]),
                  http: VlcHttpOptions([
                    VlcHttpOptions.httpReconnect(true),
                  ]),
                  // extras: ['--vv',':codec=avcodec','vcodec=h264']
                ), //
              `);

Nandhu-89 avatar Jan 29 '24 07:01 Nandhu-89

@Nandhu-89 Were you able to resolve this issue? I am facing the same issue. Even if controller has isPlaying=true, black screen is coming for 5-10 seconds.

JuliaArshaja avatar Feb 24 '25 10:02 JuliaArshaja