简体   繁体   English

MediaPlayer:错误(1,-2147483648)

[英]MediaPlayer﹕ error (1, -2147483648)

Trying to debug my application, I have found this error in the logcat. 尝试调试我的应用程序时,我在logcat中发现了此错误。

When this happens, the application seems to display a black screen (when it should be playing a video). 发生这种情况时,应用程序似乎显示黑屏(应该在播放视频时)。 If I hit the home key (to exit without destroying the app in memory) then launch the application again, it starts displaying the video as normal. 如果我按下Home键(退出而不破坏内存中的应用程序),然后再次启动该应用程序,它将开始正常显示视频。

What is this error code trying to tell me? 这个错误代码试图告诉我什么? I cannot seem to find any solid info on what it is. 我似乎找不到任何可靠的信息。 There are no matching results for the part of the code "-2147483648". 代码“ -2147483648”的部分没有匹配结果。

设置数据源时,我可以通过更正不完整的文件路径来解决相同的错误“ -2147483648”:myMediaPlayer.setDataSource(“此处为已更正的文件路径”);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM