ChatVideoViewPlugin.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type IChatViewPlugin from "@/plugins/IChatViewPlugin";
  2. import MessageUtils from "@/utils/MessageUtils";
  3. class ChatVideoViewPlugin implements IChatViewPlugin {
  4. icon = 'cuIcon-record'
  5. title = '视频通话'
  6. handle(chatId: string) {
  7. // if(showVideo){
  8. // MessageUtils.success('视频暂不开放');
  9. // return;
  10. // }
  11. //webRTCCallCtr groupWebRTCCallCtr
  12. uni.navigateTo({
  13. url: `/imcall/webRTCCallCtr?friendId=${chatId}&showVideo=true&isCaller=true`
  14. })
  15. // if(uni.getSystemInfoSync().platform == "ios"){
  16. // uni.navigateTo({
  17. // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
  18. // url: `/imcall/iOSVideoCalling?friendId=${chatId}&showVideo=true&isCaller=true`
  19. // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
  20. // })
  21. // }
  22. // else{
  23. // uni.navigateTo({
  24. // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
  25. // url: `/imcall/adrVideoCalling?friendId=${chatId}&showVideo=true&isCaller=true`
  26. // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
  27. // })
  28. // }
  29. // uni.navigateTo({
  30. // url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=true`
  31. // })
  32. }
  33. }
  34. export default ChatVideoViewPlugin