金刚腿
金刚腿
  • 发布:2024-04-16 10:32
  • 更新:2024-04-16 10:32
  • 阅读:59

【报Bug】iOS上uni.createVideoContext执行seek后,一直处于加载,播放严重卡顿

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 14.4.1

HBuilderX类型: 正式

HBuilderX版本号: 4.08

手机系统: iOS

手机系统版本号: iOS 16

手机厂商: 苹果

手机机型: iphone11、iphoneXR

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
<template>  
<video id="myVideo" :src="xxx" style="width: 100%; height: 500rpx" controls :enable-progress-gesture="false" >  
<template>  

<script>  
export default {  
  data(){  
    return {  
     xxx:"xxxx.mp4",  
    }  
 },  

onLoad(){  
async onLoad(o) {  
            this.videoContext = uni.createVideoContext("myVideo");  

                        // 请求视频  
            this.$ajax("xxxxx", {}).then((res) => {  
                this.xxx = res.data  
            });  

                         // 设置跳进度  
            setTimeout(() => {  
                this.videoContext.seek(12);  
            }, 1000)  
        },  
}  
}  
</script>

操作步骤:

复现步骤为

setTimeout(() => {  
  this.videoContext.seek(12);  
}, 1000)

预期结果:

seek后视频流畅播放

实际结果:

seek后视频处于加载中,播放一两秒就开始加载,严重卡顿

bug描述:

iOS上播放大小为为400M的视频,当执行seek使视频进度跳到某个时间点,再次播放后卡顿严重,一直显示加载

2024-04-16 10:32 负责人:无 分享
已邀请:

要回复问题请先登录注册