java.io.FileNotFoundException:尝试播放m3u8 / HLS流时,webview中没有内容提供程序错误

时间:2019-01-26 11:26:41

标签: android webview hls m3u8

我使用YouPHPTube和nginx创建了一个流媒体站点,用于实时流媒体。在桌面浏览器上工作正常,但是当我尝试使用webview观看视频流时。我将nginx配置为使用hls。最初,我在使用SslErrorHandler对播放器进行加载时遇到问题,但是现在播放器一直处于加载状态。我尝试了最近https://github.com/cprcrack/VideoEnabledWebView种Webview代码的变体,其StackTrace返回了 错误“无法打开https://192.168.43.140:444/live/5c4401b914124/index.m3u8:java.io.FileNotFoundException:没有内容提供程序:https://192.168.43.140:444/live/5c4401b914124/index.m3u8

2019-01-26 13:58:46.247 5705-5705/cpr.name.videoenabledwebview W/MediaPlayer: Couldn't open https://192.168.43.140:444/live/5c4401b914124/index.m3u8: java.io.FileNotFoundException: No content provider: https://192.168.43.140:444/live/5c4401b914124/index.m3u8

2019-01-26 13:58:46.248 5705-5705/cpr.name.videoenabledwebview D/MPlugin: com.mediatek.common.media.IOmaSettingHelperClazz exists on mapping table : true
2019-01-26 13:58:46.248 5705-5705/cpr.name.videoenabledwebview V/MPlugin: Create new path class loader (/vendor/plugin/FwkPlugin/FwkPlugin.apk)
2019-01-26 13:58:46.262 5705-5705/cpr.name.videoenabledwebview D/MPlugin: Load class : com.mediatek.op.media.DefaultOmaSettingHelper successfullyPathClassLoader :dalvik.system.PathClassLoader[DexPathList[[zip file "/vendor/plugin/FwkPlugin/FwkPlugin.apk"],nativeLibraryDirectories=[/system/lib, /vendor/lib, /system/vendor/lib]]]
2019-01-26 13:58:46.270 5705-5705/cpr.name.videoenabledwebview W/System: ClassLoader referenced unknown path: /data/app-lib/FwkPlugin
2019-01-26 13:58:46.276 5705-5705/cpr.name.videoenabledwebview D/MPlugin: Exception occurs when using constructor with Context
2019-01-26 13:58:46.277 5705-5705/cpr.name.videoenabledwebview V/DefaultOmaSettingHelper: setSettingHeader: with uri=https://192.168.43.140:444/live/5c4401b914124/index.m3u8
2019-01-26 13:58:46.278 5705-5705/cpr.name.videoenabledwebview V/DefaultOmaSettingHelper: isOMAEnabled: enabled=true
2019-01-26 13:58:46.314 5705-5705/cpr.name.videoenabledwebview D/MediaPlayer: setDataSource_drm_preCheck: fd 0 url 0xaca783b0
2019-01-26 13:58:46.323 5705-5705/cpr.name.videoenabledwebview D/DrmMtkUtil: getProcessName() : pid to process: [/proc/5705/cmdline]->[cpr.name.videoenabledwebview]
2019-01-26 13:58:46.323 5705-5705/cpr.name.videoenabledwebview D/MediaPlayer: setDataSource_drm_preCheck: fd 0 url 0xaca783b0, cpr.name.videoenabledwebview
2019-01-26 13:58:46.324 5705-5705/cpr.name.videoenabledwebview E/DrmMtkUtil: [ERROR]isDcf() : failed to dup fd, reason [No such file or directory]
2019-01-26 13:58:46.324 5705-5705/cpr.name.videoenabledwebview D/MediaPlayer: save process info: [cpr.name.videoenabledwebview]
2019-01-26 13:58:46.326 5705-5705/cpr.name.videoenabledwebview D/MediaPlayer: Don't notify duration to cpr.name.videoenabledwebview!
2019-01-26 13:58:46.352 5705-5705/cpr.name.videoenabledwebview I/chromium: [INFO:CONSOLE(128)] "VIDEOJS:", source: http://192.168.43.140/YouPHPTube/js/video.js/video.js (128)
2019-01-26 13:58:46.353 5705-5705/cpr.name.videoenabledwebview I/chromium: [INFO:CONSOLE(128)] "VIDEOJS:", source: http://192.168.43.140/YouPHPTube/js/video.js/video.js (128)
2019-01-26 13:58:46.353 5705-5705/cpr.name.videoenabledwebview I/chromium: [INFO:CONSOLE(128)] "VIDEOJS:", source: http://192.168.43.140/YouPHPTube/js/video.js/video.js (128)
2019-01-26 13:58:46.386 5705-5717/cpr.name.videoenabledwebview D/MediaHTTPConnection: disconnect finish

我想询问如何在Webview中播放源URL格式为“ https://192.168.43.140:444/live/5c4401b914124/index.m3u8”的html5视频。我可以添加一个Webview或Webkit库来协助您吗?

0 个答案:

没有答案