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); }
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); }
private static extern void gst_transcoder_set_progress_callback(HandleRef handle, GstTranscoderProgressCallback cb);