开发者

Android - Buffering Lag with VideoView

开发者 https://www.devze.com 2023-01-02 17:43 出处:网络
I am using VideoView t开发者_StackOverflow社区o display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play.

I am using VideoView t开发者_StackOverflow社区o display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag.

Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner?

Thanks Chris


if you are using RTSP Streaming, buffering is the reason of what you have more seamless playback. if you are playing an Audio/Video file reduce the bit rate encoding of your files.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号