切换页面时,摄像头设定前后置失效,默认后置。
发布于 5 年前 作者 qfan 10282 次浏览 来自 问答

第一页 :

live-pusher device-position=“front” style=“height:0px;” @error=“liveError></live-pusher>  

激活录像 录音授权

第二页 :

<camera device-position=“front” flash=“off” binderror=“error” style=“width:325px;height:400px;”>

    <cover-view style=“position:absolute;bottom:0px;”>

        <cover-image mode=‘widthFix’ style=“width:97%;margin:0 auto;” class=‘img’ src=’/static/images/border.png’></cover-image>

    </cover-view>

</camera>

设定前置摄像头

第三页 :   同上

BUG点:页面切换 设定的前置摄像头失效,转为后置。

回到顶部