3import com.zipow.videobox.confapp.enums.CONF_CMD;
 
    4import com.zipow.videobox.confapp.CmmUser;
 
    5import com.zipow.videobox.confapp.VideoSessionMgr;
 
    6import com.zipow.videobox.conference.jni.confinst.IConfInst;
 
    7import com.zipow.videobox.conference.module.confinst.ZmConfInstMgr;
 
    9import java.nio.ByteBuffer;
 
   11import us.zoom.internal.ErrorCodeMapping;
 
   12import us.zoom.internal.RTCConference;
 
   13import us.zoom.internal.event.RTCVideoRawDataDelegate;
 
   14import us.zoom.internal.event.SDKConfUIEventHandler;
 
   15import us.zoom.internal.helper.SDKMeetingInterfaceHelper;
 
   38    SDKConfUIEventHandler.ISDKConfUIListener 
simpleConfUIListener = 
new SDKConfUIEventHandler.SimpleSDKConfUIListener() {
 
   40        public boolean onConfStatusChanged2(
int cmd, 
long ret) {
 
   41            if (cmd == CONF_CMD.CMD_CONF_LEAVE_COMPLETE) {
 
   43            } 
else if (cmd == CONF_CMD.CMD_CONF_SILENTMODE_CHANGED) {
 
   44                if (SDKMeetingInterfaceHelper.isInSlientMode()) {
 
 
   62    private RTCVideoRawDataDelegate.RTCVideoRawDataListener 
listener = 
new RTCVideoRawDataDelegate.SimpleRTCVideoRawDataListener() {
 
   66        public void onSubscribedVideoUserDataOn() {
 
   73        public void onSubscribedVideoUserDataOff() {
 
   80        public void onSubscribedShareUserDataOff() {
 
   87        public void onSubscribedShareUserDataOn() {
 
   95        public void onVideoRawDataReceived(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, ByteBuffer aBuffer, 
boolean isLimited, 
int streamWidth, 
int streamHeight, 
int rotation,
long timeStamp, 
long nativeHandle, 
long nativeYHandle, 
long nativeUHandle, 
long nativeVHandle, 
long nativeAHandle) {
 
   97                ZoomSDKVideoRawData rawData = 
new ZoomSDKVideoRawData(yBuffer, uBuffer, vBuffer, aBuffer, isLimited, streamWidth, streamHeight, rotation,timeStamp, 
ZoomSDKVideoRawData.
FORMAT_TYPE_I420, nativeHandle, nativeYHandle, nativeUHandle, nativeVHandle, nativeAHandle);
 
  103        public void onShareRawDataReceived(ByteBuffer yBuffer, ByteBuffer uBuffer, ByteBuffer vBuffer, 
boolean isLimited, 
int streamWidth, 
int streamHeight, 
int rotation,
long timeStamp, 
long nativeHandle, 
long nativeYHandle, 
long nativeUHandle, 
long nativeVHandle) {
 
  105                ZoomSDKVideoRawData rawData = 
new ZoomSDKVideoRawData(yBuffer, uBuffer, vBuffer, isLimited, streamWidth, streamHeight, rotation,timeStamp, 
ZoomSDKVideoRawData.
FORMAT_TYPE_I420, nativeHandle, nativeYHandle, nativeUHandle, nativeVHandle);
 
 
  117        this.delegate = dataDelegate;
 
 
  128        if (
null == resolution) {
 
  131        if (resolution != this.mResolution) {
 
  132            this.mResolution = resolution;
 
 
  142        if (SDKMeetingInterfaceHelper.isInSlientMode()) {
 
  146        int id = (int) subscribeId;
 
  148        RTCConference conference = RTCConference.getInstance();
 
  150        if (
null == conference) {
 
  166                VideoSessionMgr videoMgr = ZmConfInstMgr.getInstance().getCurrentConfInst().getVideoObj();
 
  167                if (
null != videoMgr) {
 
  168                    CmmUser user = ZmConfInstMgr.getInstance().getCurrentConfInst().getMyself();
 
  170                        id = (int) ZmConfInstMgr.getInstance().getCurrentConfInst().getMyself().getNodeId();
 
  186            this.mSubscribeId = id;
 
  190        return ErrorCodeMapping.mapping(result);
 
 
  200        RTCConference conference = RTCConference.getInstance();
 
  216            IConfInst confMgr = ZmConfInstMgr.getInstance().getCurrentConfInst();
 
  217            if (
null != confMgr) {
 
  218                CmmUser mySelf = confMgr.getMyself();
 
  219                if (
null != mySelf) {
 
  237        return ErrorCodeMapping.mapping(result);
 
 
 
static ZoomSDK getInstance()
Get a shared instance of ZOOM SDK, must call from the main thread.
MeetingService getMeetingService()
Get the instance of meeting service.
Zoom SDK video raw data render.
RTCVideoRawDataDelegate.RTCVideoRawDataListener listener
ZoomSDKRawDataType mRawDataType
ZoomSDKRawDataType getRawDataType()
void setRawDataResolution(ZoomSDKVideoResolution resolution)
Set the raw data video mResolution .
ZoomSDKVideoResolution getResolution()
ZoomSDKVideoResolution mResolution
ZoomSDKRenderer(IZoomSDKVideoRawDataDelegate dataDelegate)
ZoomSDKRenderer Constructor.
IZoomSDKVideoRawDataDelegate delegate
MobileRTCRawDataError unSubscribe()
unSubscribe raw data. User should call when leaveRoom room or remove render view
SDKConfUIEventHandler.ISDKConfUIListener simpleConfUIListener
MobileRTCRawDataError subscribe(long subscribeId, ZoomSDKRawDataType type)
Subscribe user video by userId,rawDataType.
RTCVideoRawDataDelegate rtcVideoRawDataDelegate
Zoom SDK Video raw data bean.
static final int FORMAT_TYPE_I420
Enumeration of meeting status.
MobileRTCRawData_WrongUsage
MobileRTCRawData_Uninitialized
Enumeration of common errors of SDK.
Enumeration of raw data types.
Enumeration of video resolution options.
void onVideoRawDataFrame(ZoomSDKVideoRawData rawData)
Video raw data callback.
void onUserRawDataStatusChanged(UserRawDataStatus status)
Subscribe source video/share status changed.
MeetingStatus getMeetingStatus()