cover-view和cover-image无法覆盖在live-pusher上
发布于 6 年前 作者 xiuying22 3457 次浏览 来自 问答

在真机上cover-view和cover-image无法覆盖在live-pusher上 在开发工具上没问题  之前也看到其他人在社区反馈了这个问题 但官方没有给出解决方案 我的cover-view和cover-image是写在live-pusher里的

<live-pusher
 id="pushPlayer"
 orientation="{{orientation}}"
 mode="{{mode}}"
 device-position="{{devicePosition}}"
 voice="{{voice}}"
 beauty="{{beauty}}"
 class="live-pusher"
 waiting-image="../../images/wait_bg.png"
 mode="FHD"
 autopush="{{autopush}}"
 [@statechange](/user/statechange)="statechange"
 [@netstatus](/user/netstatus)="netstatusChange"
 url="{{pushUrl}}"
>
 <cover-view>
    <cover-view class="icon_code" [@tap](/user/tap)="toggleCode">
       <cover-image src="../../images/icon_code.png" />
    </cover-view>
    <cover-view class="icon_camera" [@tap](/user/tap)="toggleCamera">
       <cover-image src="../../images/icon_camera.png" />
    </cover-view>
   <cover-view class="icon_voice" [@tap](/user/tap)="toggleVoice">
      <cover-image src="{{voice === 'false' ? '../../images/icon_voice.png' : '../../images/icon_voice_close.png'}}" />
   </cover-view>
   <cover-view class="icon_beauty" [@tap](/user/tap)="toggleBeauty">
      <cover-image src="../../images/icon_beauty.png" />
   </cover-view>
   <cover-view class="icon_play" [@tap](/user/tap)="beginPush" hidden="{{isHiddenPlay}}">
      <cover-image src="../../images/icon_play.png" />
   </cover-view>
   <cover-view class="icon_pause" [@tap](/user/tap)="pausePush" hidden="{{isHiddenPause}}">
      <cover-image src="../../images/icon_pause.png" />
   </cover-view>
 </cover-view>
</live-pusher>
回到顶部