internal void SetHandle(VideoTrackSourceHandle nativeHandle) { Debug.Assert(_nativeHandle == null); Debug.Assert(!nativeHandle.IsClosed); _nativeHandle = nativeHandle; // Note that this prevents the object from being garbage-collected until it is disposed. _selfHandle = Utils.MakeWrapperRef(this); }
internal DeviceVideoTrackSource(VideoTrackSourceHandle nativeHandle) : base(nativeHandle) { }
internal void SetHandle(VideoTrackSourceHandle nativeHandle) { Debug.Assert(_nativeHandle == null); _nativeHandle = nativeHandle; }
internal VideoTrackSource(VideoTrackSourceHandle nativeHandle) { Debug.Assert(!nativeHandle.IsClosed); _nativeHandle = nativeHandle; }
internal VideoTrackSource(VideoTrackSourceHandle nativeHandle) { SetHandle(nativeHandle); }