动态切换video src播放地址
- 发布:2021-02-07 21:12
- 更新:2022-01-05 15:10
- 阅读:1228
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win7
HBuilderX类型: 正式
HBuilderX版本号: 3.1.2
手机系统: Android
手机系统版本号: Android 5.1
手机厂商: 模拟器
手机机型: vivo
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
不闪退
不闪退
实际结果:
3.1.2闪退
3.0.7正常
3.1.2闪退
3.0.7正常
bug描述:
升级到3.1.2后动态切换video src会闪退,降级到3.0.7没有问题
同样遇到了,安卓版本 5.1.1
错误日志:
我看错误日志是:
07-05 11:58:21.470 18151 18151 W System.err: java.lang.NoSuchMethodError: No virtual method isReleased()Z in class Landroid/graphics/SurfaceTexture; or its super classes (declaration of 'android.graphics.SurfaceTexture' appears in /system/framework/framework.jar)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.TextureRenderView$InternalSurfaceHolder.bindToMediaPlayer(TextureRenderView.java:162)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView.bindSurfaceHolder(IjkVideoView.java:1003)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView.access$2500(IjkVideoView.java:68)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView$9.onSurfaceCreated(IjkVideoView.java:1035)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable(TextureRenderView.java:280)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.TextureView.getHardwareLayer(TextureView.java:370)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.View.updateDisplayListIfDirty(View.java:14274)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.View.getDisplayList(View.java:14319)
....
leegcc
同样安卓版本 5.1.1,切换 <video> 的 src 属性值直接闪退,错误日志如下:
我看错误日志是:
07-05 11:58:21.470 18151 18151 W System.err: java.lang.NoSuchMethodError: No virtual method isReleased()Z in class Landroid/graphics/SurfaceTexture; or its super classes (declaration of 'android.graphics.SurfaceTexture' appears in /system/framework/framework.jar)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.TextureRenderView$InternalSurfaceHolder.bindToMediaPlayer(TextureRenderView.java:162)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView.bindSurfaceHolder(IjkVideoView.java:1003)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView.access$2500(IjkVideoView.java:68)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.IjkVideoView$9.onSurfaceCreated(IjkVideoView.java:1035)
07-05 11:58:21.471 18151 18151 W System.err: at io.dcloud.media.video.ijkplayer.media.TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable(TextureRenderView.java:280)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.TextureView.getHardwareLayer(TextureView.java:370)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.View.updateDisplayListIfDirty(View.java:14274)
07-05 11:58:21.472 18151 18151 W System.err: at android.view.View.getDisplayList(View.java:14319)
....
2021-07-05 12:05
DCloud_UNI_GSQ
回复 leegcc: 其他机型是否正常?
2021-07-05 21:09