安卓MediaPlayer错误(-38,0)

5

我遇到了媒体播放器的问题。有时会出现错误,然后调用 on error 函数。这里有一个 Mediaplayer 和两个 int 型参数。

第一个 int 是“-38”,第二个 int 是“0”。

这是什么意思?

编辑:代码:http://pastebin.com/3XBaFYwF

这是我的 logcat @Blundell LogCat:

http://pastebin.com/Wbjm3QCW

1个回答

11

VideoView - Blundell
如果你深入了解VideoView的源代码,你会发现它使用了MediaPlayer。 - Blundell
@diiiz_ 对于未准备好的媒体播放器获取当前位置会引发此错误:https://dev59.com/6Gox5IYBdhLWcg3wvWoy#30296898 - fire in the hole

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接