更新记录

1.0.0(2025-08-01)

因公司需要花了两天写的一个小插件


平台兼容性

<button class="ShouYeButton2" type="warn"> 摄像头测试 </button> <button class="ShouYeButton1" type="primary" @click="openCamera(1,true)"> 开启摄像头1 </button> <button class="ShouYeButton1" type="primary" @click="openCamera(1,false)"> 关闭摄像头1 </button> <button class="ShouYeButton1" type="primary" @click="snapCamera(1)"> 拍照1 </button> <button class="ShouYeButton1" type="primary" @click="openCamera(2,true)"> 开启摄像头2 </button> <button class="ShouYeButton1" type="primary" @click="openCamera(2,false)"> 关闭摄像头2 </button> <button class="ShouYeButton1" type="primary" @click="snapCamera(2)"> 拍照2 </button>
    <Triple-Camera-Plugin ref="camera" style="width:1220px;height:600px" @saveVideo="saveVideo" @savePhoto="savePhoto" 
        ></Triple-Camera-Plugin>

        openCamera(number,status){
            this.$refs.camera.handoffCamera(number,status)
        },
        snapCamera(number){

                this.$refs.camera.takePicture(number)
        },
        saveVideo(e){
            console.log(e)
            uni.showToast({
                title: e,
                icon: 'success'
            });
        },
        savePhoto(e){

            uni.showToast({
                title: e,
                icon: 'success'
            });
                console.log(e)
        },

隐私、权限声明

1. 本插件需要申请的系统权限列表:

摄像头

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率: