Exemplo n.º 1
0
        public Transcoder()
        {
            IntPtr ptr = gst_transcoder_new();

            if(ptr == IntPtr.Zero) {
                throw new NullReferenceException(Catalog.GetString("Could not create transcoder"));
            }

            handle = new HandleRef(this, ptr);

            ProgressCallback = new GstTranscoderProgressCallback(OnNativeProgress);
            FinishedCallback = new GstTranscoderFinishedCallback(OnNativeFinished);
            ErrorCallback = new GstTranscoderErrorCallback(OnNativeError);

            gst_transcoder_set_progress_callback(handle, ProgressCallback);
            gst_transcoder_set_finished_callback(handle, FinishedCallback);
            gst_transcoder_set_error_callback(handle, ErrorCallback);
        }
Exemplo n.º 2
0
        public Transcoder()
        {
            IntPtr ptr = gst_transcoder_new();

            if (ptr == IntPtr.Zero)
            {
                throw new NullReferenceException(Catalog.GetString("Could not create transcoder"));
            }

            handle = new HandleRef(this, ptr);

            ProgressCallback = new GstTranscoderProgressCallback(OnNativeProgress);
            FinishedCallback = new GstTranscoderFinishedCallback(OnNativeFinished);
            ErrorCallback    = new GstTranscoderErrorCallback(OnNativeError);

            gst_transcoder_set_progress_callback(handle, ProgressCallback);
            gst_transcoder_set_finished_callback(handle, FinishedCallback);
            gst_transcoder_set_error_callback(handle, ErrorCallback);
        }
Exemplo n.º 3
0
 private static extern void gst_transcoder_set_progress_callback(HandleRef handle,
                                                                 GstTranscoderProgressCallback cb);
Exemplo n.º 4
0
 private static extern void gst_transcoder_set_progress_callback(HandleRef handle,
     GstTranscoderProgressCallback cb);