I’m working on a live streaming application using Flutter and VLC Media Player. The setup works, but I’m experiencing significant latency (about 3-5 seconds) in the live stream. I need to reduce this latency to make the streaming more real-time.
What I’ve Tried:
- Adjusted the caching settings in VLC:
VlcPlayerController controller = VlcPlayerController.network( videoStreamURL ?? '', hwAcc: HwAcc.full, autoPlay: true, options: VlcPlayerOptions( rtp: VlcRtpOptions([VlcRtpOptions.rtpOverRtsp(true)],), ), // );
- Ensured low-latency network conditions and tested on a high-speed connection.
- Searched through VLC and Flutter documentation, but couldn’t find specific guidelines for reducing live stream latency.
Environment:
- Flutter version: 3.22.0
- flutter_vlc_player: 7.4.1
Error Messages:
There are no specific error messages, but the latency remains around 3-5 seconds.
Question:
What are the best practices for reducing live streaming latency in VLC Media Player when using Flutter? Are there specific configurations or code adjustments that can help achieve lower latency?