<template>  
    <view>  
        <live-pusher  
            id="livePusher"  
            ref="livePusher"  
            class="livePusher"  
            url=""  
            mode="SD"  
            device-position="front"  
            whiteness="2"  
            aspect="9:16"  
            :zoom="true"  
            :muted="true"  
            :enable-camera="true"  
            :auto-focus="true"  
            :beauty="1"  
        ></live-pusher>  
        <button @click="start()">开始直播</button>  
    </view>  
</template>  
<script>  
export default {  
    name: 'index',  
    components: {},  
    data() {  
        return {  
            context: null  
        };  
    },  
    methods: {  
        start() {  
            this.context = uni.createLivePusherContext('livePusher', this);  
            this.context.startPreview();  
            this.context.start();  
        }  
    }  
};  
</script>  
<style>  
.livePusher {  
    width: 750rpx;  
    height: 1000rpx;  
    flex: 1;  
    background-color: #000;  
}  
</style>                                    - 发布:2023-06-15 17:12
 - 更新:2024-01-30 10:53
 - 阅读:646
 
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 3.8.4
手机系统: iOS
手机系统版本号: iOS 14
手机厂商: 苹果
手机机型: IOS14promax
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
                                    
                                    
                                         
                                
                                                                                                操作步骤:
                                    
                                        点击开始直播,然后对live-pusher组件进行调整焦距的操作,但是焦距无法改变
                                     
                                
                                                                                                点击开始直播,然后对live-pusher组件进行调整焦距的操作,但是焦距无法改变
预期结果:
                                    
                                    
                                        对live-pusher组件进行调整焦距操作可以正常实现焦距的调整
                                     
                                
                                                                                                对live-pusher组件进行调整焦距操作可以正常实现焦距的调整
实际结果:
                                    
                                    
                                        live-pusher组件无法实现调整焦距的操作
                                     
                                
                                                            live-pusher组件无法实现调整焦距的操作
bug描述:
live-pusher 组件 zoom属性无法使用,无法放大缩小
            
            
            
            
5 个回复
1***@qq.com (作者)
有人用过吗?
DCloud_iOS_XHY
上传一个完整的示例工程,我排查看一下
1***@qq.com (作者)
我放在下面了ZOOM这个属性IOS不生效
2023-10-30 17:36
1***@qq.com (作者)
就是这个
1***@qq.com
我也遇到了这个问题,有解决吗?
1***@qq.com (作者)
还没解决,只能解决客户
2023-11-15 14:43
1***@qq.com
遇到了同样的问题,请问解决了吗