public virtual unsafe void AddSink(global::Org.Webrtc.IVideoSink sink) { const string __id = "addSink.(Lorg/webrtc/VideoSink;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((sink == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sink).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public unsafe void SetSink(global::Org.Webrtc.IVideoSink p0) { if (id_setSink_Lorg_webrtc_VideoSink_ == IntPtr.Zero) { id_setSink_Lorg_webrtc_VideoSink_ = JNIEnv.GetMethodID(class_ref, "setSink", "(Lorg/webrtc/VideoSink;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setSink_Lorg_webrtc_VideoSink_, __args); }
static void n_OnFrame_Lorg_webrtc_VideoFrame_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Webrtc.IVideoSink __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoSink> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.VideoFrame p0 = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoFrame> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnFrame(p0); }
static void n_RemoveSink_Lorg_webrtc_VideoSink_(IntPtr jnienv, IntPtr native__this, IntPtr native_sink) { global::Org.Webrtc.VideoTrack __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.VideoTrack> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.IVideoSink sink = (global::Org.Webrtc.IVideoSink)global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoSink> (native_sink, JniHandleOwnership.DoNotTransfer); __this.RemoveSink(sink); }
static void n_StartListening_Lorg_webrtc_VideoSink_(IntPtr jnienv, IntPtr native__this, IntPtr native_listener) { global::Org.Webrtc.SurfaceTextureHelper __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.SurfaceTextureHelper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.IVideoSink listener = (global::Org.Webrtc.IVideoSink)global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoSink> (native_listener, JniHandleOwnership.DoNotTransfer); __this.StartListening(listener); }
static void n_SetSink_Lorg_webrtc_VideoSink_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Webrtc.IVideoProcessor __this = global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoProcessor> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Webrtc.IVideoSink p0 = (global::Org.Webrtc.IVideoSink)global::Java.Lang.Object.GetObject <global::Org.Webrtc.IVideoSink> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetSink(p0); }