/// <summary> /// 设置直播过程中状态回调 /// </summary> /// <param name="callback">直播状态通知回调</param> private void SetStatusCallback(StatusNotifyCallback callback) { ThrowIfServiceException(); Api.SetStatusCallback(Service, callback); }
private ApiProvider() { _mergedVideoSamplerCallback = new MergedVideoSamplerCallback(OnVideoSamplerMerged); _statusNotifyCallback = new StatusNotifyCallback(OnStatusChanged); }
internal static extern void SetStatusCallback(IntPtr service, StatusNotifyCallback callback);