我有一个带有android:persistent =“ true”的系统级应用,该应用已推送到/ system / priv-app /目录。因此,它将自动安装并在重启后开始其过程。但是,当我启动WebActivity加载包含WebView标签的Web URL时,按视频标签的播放按钮时,它将播放音频,但黑屏。但是,如果我删除android:persistent =“ true”,就可以了。
这让我很困惑,因为sdk文档从未说过android:persistent可能会导致该错误,但是它确实发生了。 下面是我按下标签的播放按钮后的日志,希望对您有所帮助。
7-16 11:30:25.678 660-2415/com.example.zhanghq.anytest W/chromium: [WARNING:proxy_service.cc(890)] PAC support disabled because there is no system implementation
07-16 11:30:25.958 660-660/com.example.zhanghq.anytest W/AwContents: nativeOnDraw failed; clearing to background color.
07-16 11:30:31.898 660-660/com.example.zhanghq.anytest I/chromium: [INFO:CONSOLE(0)] "event.returnValue is deprecated. Please use the standard event.preventDefault() instead.", source: (0)
07-16 11:30:32.038 660-660/com.example.zhanghq.anytest D/MediaPlayerBridge: setDataSource: http://img-steward-test.goodaa.com.cn/a03848997fae4bb5a35684e7b0284517.mp4
07-16 11:30:32.038 660-660/com.example.zhanghq.anytest D/MediaPlayer: Couldn't open file on client side, trying server side
07-16 11:30:35.368 660-660/com.example.zhanghq.anytest E/MediaPlayer: Should have subtitle controller already set
07-16 11:30:35.558 660-660/com.example.zhanghq.anytest D/MediaPlayer: getMetadata
07-16 11:30:36.588 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,504)
07-16 11:30:37.618 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,902)
07-16 11:30:38.618 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,1259)
07-16 11:30:39.648 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,1615)
07-16 11:30:40.648 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,2014)
07-16 11:30:41.658 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,2338)
07-16 11:30:42.708 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,2685)
07-16 11:30:43.748 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,3074)
07-16 11:30:44.788 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,3431)
07-16 11:30:45.788 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,3829)
07-16 11:30:46.808 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,4205)
07-16 11:30:47.818 660-660/com.example.zhanghq.anytest I/MediaPlayer: Info (700,4604)