在seekTo()函数不会在VideoView工作会在、函数、工作、seekTo

2023-09-09 21:07:18 作者:枯蝶残香零叶

有一个在我的应用程序的问题,我想用seekTo()函数VideoView是这样的:

There is a problem in my application,I want to use the seekTo() function with VideoView like this:

videoView.seekTo(time);
videoView.start();

它的工作原理以及在Android 2.2系统,但在安卓2.3或更高版本不工作... 有些身体会告诉我为什么?这困扰我薮天。

It works well in android 2.2,but doesn't work in android 2.3 or higher version... Some body will tell me why?It troubles me for serval days.

推荐答案

在以 seekTo()工作,该视频应该是在 PlaybackState

In order to seekTo() to work , the video should be in PlaybackState.

VideoView 来源此处了解更多信息。