예제 #1
0
        public Publisher(string name, int width, int height)
        {
            _callbacks = new PublisherNative.otc_publisher_cb();
            _callbacks.on_render_frame = on_render_frame;
            _callbacks.userData        = (IntPtr)GCHandle.Alloc(this);
            _capturer = iOS.VideoCapturerNative.otc_video_capturer_create(width, height);

            _publisher = PublisherNative.otc_publisher_new(name, _capturer, ref _callbacks);
        }
예제 #2
0
 public void Dispose()
 {
     PublisherNative.otc_publisher_delete(_publisher);
     ((GCHandle)_callbacks.userData).Free();
 }