ChatVoiceViewPlugin.ts 974 B

12345678910111213141516171819202122232425262728293031
  1. import type IChatViewPlugin from "@/plugins/IChatViewPlugin";
  2. class ChatVoiceViewPlugin implements IChatViewPlugin {
  3. icon = 'cuIcon-phone'
  4. title = '语音通话'
  5. handle(chatId: string) {
  6. uni.navigateTo({
  7. url: `/imcall/webRTCCallCtr?friendId=${chatId}&showVideo=false&isCaller=true`
  8. })
  9. // if(uni.getSystemInfoSync().platform == "ios"){
  10. // uni.navigateTo({
  11. // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
  12. // url: `/imcall/iOSVideoCalling?friendId=${chatId}&showVideo=false&isCaller=true`
  13. // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
  14. // })
  15. // }
  16. // else{
  17. // uni.navigateTo({
  18. // //url: `/plugins/video/VideoCalling?friendId=${chatId}&showVideo=false`
  19. // url: `/imcall/adrVideoCalling?friendId=${chatId}&showVideo=false&isCaller=true`
  20. // //url: `/plugins/video/iOSVideoCalling?friendId=${chatId}&showVideo=false`
  21. // })
  22. // }
  23. }
  24. }
  25. export default ChatVoiceViewPlugin