public static void initEngine(string appId, OnMediaEngineLoadSuccessHandler success) { Debug.Log("initVideoShareEngine"); if (mRtcEngine != null) { Debug.Log("mRtcEngine exist"); return; } else { mRtcEngine = IRtcEngine.GetEngine(appId); mRtcEngine.OnMediaEngineLoadSuccess = success; // 设置日志输出等级。 mRtcEngine.SetLogFilter(LOG_FILTER.DEBUG | LOG_FILTER.INFO | LOG_FILTER.WARNING | LOG_FILTER.ERROR | LOG_FILTER.CRITICAL); } }
protected static extern void initEventOnEngineCallback(OnJoinChannelSuccessHandler OnJoinChannelSuccess, OnReJoinChannelSuccessHandler OnReJoinChannelSuccess, OnConnectionLostHandler OnConnectionLost, EngineEventOnLeaveChannelHandler OnLeaveChannel, OnConnectionInterruptedHandler OnConnectionInterrupted, OnRequestTokenHandler OnRequestToken, OnUserJoinedHandler OnUserJoined, EngineEventOnUserOfflineHandler OnUserOffline, EngineEventOnAudioVolumeIndicationHandler OnAudioVolumeIndication, OnUserMutedAudioHandler OnUserMuteAudio, OnSDKWarningHandler OnSDKWarning, OnSDKErrorHandler OnSDKError, EngineEventOnRtcStatsHandler OnRtcStats, OnAudioMixingFinishedHandler OnAudioMixingFinished, EngineEventOnAudioRouteChangedHandler OnAudioRouteChanged, OnFirstRemoteVideoDecodedHandler OnFirstRemoteVideoDecoded, OnVideoSizeChangedHandler OnVideoSizeChanged, EngineEventOnClientRoleChanged onClientRolteChanged, OnUserMuteVideoHandler OnUserMuteVideo, OnMicrophoneEnabledHandler OnMicrophoneEnabled, OnApiExecutedHandler OnApiExecuted, OnFirstLocalAudioFrameHandler OnFirstLocalAudioFrame, OnFirstRemoteAudioFrameHandler OnFirstRemoteAudioFrame, OnLastmileQualityHandler OnLastmileQuality, OnAudioQualityHandler onAudioQuality, OnStreamInjectedStatusHandler onStreamInjectedStatus, OnStreamUnpublishedHandler onStreamUnpublished, OnStreamPublishedHandler onStreamPublished, OnStreamMessageErrorHandler onStreamMessageError, OnStreamMessageHandler onStreamMessage, OnConnectionBannedHandler onConnectionBanned, OnVideoStoppedHandler OnVideoStopped, OnTokenPrivilegeWillExpireHandler onTokenPrivilegeWillExpire, OnNetworkQualityHandler onNetworkQuality, EngineEventOnLocalVideoStatsHandler onLocalVideoStats, EngineEventOnRemoteVideoStatsHandler onRemoteVideoStats, EngineEventOnRemoteAudioStatsHandler onRemoteAudioStats, OnFirstLocalVideoFrameHandler OnFirstLocalVideoFrame, OnFirstRemoteVideoFrameHandler OnFirstRemoteVideoFrame, OnUserEnableVideoHandler OnUserEnableVideo, OnAudioDeviceStateChangedHandler onAudioDeviceStateChanged, OnCameraReadyHandler onCameraReady, OnCameraFocusAreaChangedHandler onCameraFocusAreaChanged, OnCameraExposureAreaChangedHandler onCameraExposureAreaChanged, OnRemoteAudioMixingBeginHandler onRemoteAudioMixingBegin, OnRemoteAudioMixingEndHandler onRemoteAudioMixingEnd, OnAudioEffectFinishedHandler onAudioEffectFinished, OnVideoDeviceStateChangedHandler onVideoDeviceStateChanged, EngineEventOnRemoteVideoStateChanged OnRemoteVideoStateChanged, OnUserEnableLocalVideoHandler OnUserEnableLocalVideo, OnLocalPublishFallbackToAudioOnlyHandler OnLocalPublishFallbackToAudioOnly, OnRemoteSubscribeFallbackToAudioOnlyHandler onRemoteSubscribeFallbackToAudioOnly, EngineEventOnConnectionStateChanged onConnectionStateChanged, OnRemoteVideoTransportStatsHandler onRemoteVideoTransportStats, OnRemoteAudioTransportStatsHandler onRemoteAudioTransportStats, OnTranscodingUpdatedHandler onTranscodingUpdated, EngineEventOnAudioDeviceVolumeChangedHandler onAudioDeviceVolumeChanged, OnActiveSpeakerHandler onActiveSpeaker, OnMediaEngineStartCallSuccessHandler onMediaEngineStartCallSuccess, OnMediaEngineLoadSuccessHandler onMediaEngineLoadSuccess, EngineEventOnAudioMixingStateChangedHandler onAudioMixingStateChanged, OnFirstRemoteAudioDecodedHandler onFirstRemoteAudioDecoded, EngineEventOnLocalVideoStateChanged onLocalVideoStateChanged, EngineEventOnRtmpStreamingStateChangedHandler onRtmpStreamingStateChanged, EngineEventOnNetworkTypeChangedHandler onNetworkTypeChanged, EngineEventOnLastmileProbeResultHandler onLastmileProbeResult, OnLocalUserRegisteredHandler onLocalUserRegistered, EngineEventOnUserInfoUpdatedHandler onUserInfoUpdated, EngineEventOnLocalAudioStateChangedHandler onLocalAudioStateChanged, EngineEventOnRemoteAudioStateChangedHandler onRemoteAudioStateChanged, EngineEventOnLocalAudioStatsHandler onLocalAudioStats, EngineEventOnChannelMediaRelayStateChangedHandler onChannelMediaRelayStateChanged, EngineEventOnChannelMediaRelayEventHandler onChannelMediaRelayEvent);