TRTCCalling.wxml 1.2 KB

1234567891011121314151617
  1. <import src="./template/audio-template/audio-template"></import>
  2. <import src="./template/video-template/video-template"></import>
  3. <view class="TRTCCaling-container">
  4. <view wx:if="{{config.type === 1 && active}}" class="TRTCCalling-call-audio">
  5. <!-- 语音通话 以下为语音通话模版 您可以根据您业务需求进行扩展,此处仅进行基础能力的展示 -->
  6. <view style="width: 100%; height: 100%">
  7. <template is='audio-template' data="{{streamList, pusherConfig, soundMode, _pusherStateChangeHandler, _pusherAudioVolumeNotify, _playerStateChange, _playerAudioVolumeNotify, _toggleAudio, _hangUp, _toggleSoundMode}}"></template>
  8. </view>
  9. </view>
  10. <view wx:if="{{config.type === 2 && pusherConfig.pushUrl !== '' && active}}" class="TRTCCalling-call">
  11. <!-- 视频通话 以下为视频通话模版 您可以根据您业务需求进行扩展,此处仅进行基础能力的展示-->
  12. <view style="width: 100%; height: 100%">
  13. <template is='video-template' data="{{streamList, pusherConfig, soundMode, _pusherStateChangeHandler, _pusherAudioVolumeNotify, _playerStateChange, _playerAudioVolumeNotify, _toggleAudio, _hangUp, _toggleSoundMode}}"></template>
  14. </view>
  15. </view>
  16. </view>