通话画面自定义组件布局,例如在视频视图显示时展示用户头像、添加用户等级的图标等
ZegoAudioVideoView smallView = new ZegoAudioVideoView(container.getContext()); smallView.setUserID(yourUserID); smallView.setForegroundViewProvider(provider);
// Layout xml file <com.zegocloud.uikit.components.audiovideocontainer.ZegoAudioVideoContainer android:id="@+id/avcontainer" android:layout_width="match_parent" android:layout_height="match_parent" /> // Java file binding.avcontainer.setAudioVideoConfig(config.audioVideoConfig); binding.avcontainer.setLayout(config.layout); binding.avcontainer.setForegroundViewProvider(provider);
ZegoInRoomMessageView inRoomMessageView = new ZegoInRoomMessageView(getContext()); inRoomMessageView.setMessageViewProvider(provider);
ZegoFaceBeautificationControlView controlView = new ZegoFaceBeautificationControlView(getContext()); controlView.setShowSkinSmoothingControlBar(true); controlView.setShowEyesBrighteningControlBar(true);
ZegoStartCallInvitationButton invitationButton = new ZegoStartCallInvitationButton(getContext()); invitationButton.setIsVideoCall(true); invitationButton.setInvitees(invitees)
let smallView: ZegoAudioVideoView = ZegoAudioVideoView() smallView.userID = yourUserID smallView.delegate = self //self implemented the ZegoAudioVideoContainerDelegate func getForegroundView( _user: ZegoUIkitUser?) -> UIView ? { let foregroundView: YourForegroundView = YourForegroundView(user) return foregroundView }
let container: ZegoAudioVideoContainer = ZegoAudioVideoContainer() container.setAudioVideoConfig(self.config.audioVideoConfig) container.setAudioVideoConfig(self.config.layout.mode, config: self.config.layout.config) container.delegate = self //self implemented the ZegoAudioVideoContainerDelegate func getForegroundView(_user: ZegoUIkitUser? ) -> UIView? { let foregroundView: YourForegroundView = YourForegroundView(user) return foregroundView }
let inRoomMessageView: ZegoInRoomMessageView = ZegoInRoomMessageView() inRoomMessageView.delegate = self //self implemented the ZegoAudioVideoContainerDelegate func getMessageView(_message: ZegoInRoomMessage? ) -> UIView ? { let messageView : YourMessageView = YourMessageView(message) return messageView }
let controlView: ZegoFaceBeautificationControlView = ZegoFaceBeautificationControlView() controlView.showSkinSmoothingControlBar = true controlView.showEyesBrighteningControlBar = true
let invitationButton: ZegoStartCallInvitationButton = ZegoStartCallInvitationButton() invitationButton.isVideoCall = true invitationButton.invitees = invitees
const zp = ZegoUIKitPrebuilt.create(kitToken); zp.joinRoom({ showMyCameraToggleButton: true, showMyMicrophoneToggleButton: true, showAudioVideoSettingsButton: true, //.... });
const zp = ZegoUIKitPrebuilt.create(kitToken); zp.joinRoom({ layout, // "Sidebar" | "Grid" | "Auto" //.... });
const zp = ZegoUIKitPrebuilt.create(kitToken); zp.addPlugins({ ZIM }); zp.sendInRoomCustomCommand({ msg:'msg' }).then(res => console.log(res)).catch(err=> console.error(err));
在线咨询
售前咨询
售后服务