| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import type IChatViewPlugin from "@/plugins/IChatViewPlugin";
- import MessageUtils from "@/utils/MessageUtils";
- class ChatVideoViewPlugin implements IChatViewPlugin {
- icon = 'cuIcon-record'
- title = '视频通话'
- handle(chatId: string) {
-
- // if(showVideo){
- // MessageUtils.success('视频暂不开放');
- // return;
- // }
- //webRTCCallCtr groupWebRTCCallCtr
- uni.navigateTo({
- url: `/imcall/webRTCCallCtr?friendId=${chatId}&showVideo=true&isCaller=true`
- })
-
- // if(uni.getSystemInfoSync().platform == "ios"){
- // uni.navigateTo({
- // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
- // url: `/imcall/iOSVideoCalling?friendId=${chatId}&showVideo=true&isCaller=true`
- // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
- // })
- // }
- // else{
- // uni.navigateTo({
- // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
- // url: `/imcall/adrVideoCalling?friendId=${chatId}&showVideo=true&isCaller=true`
- // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
- // })
- // }
- // uni.navigateTo({
- // url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=true`
- // })
- }
- }
- export default ChatVideoViewPlugin
|