예제 #1
0
        /// <summary>
        /// Set decoded video chroma and dimensions. This only works in combination with
        /// <see cref="SetVideoCallbacks" />
        /// </summary>
        /// <param name="videoFormat">Callback to select the video format (cannot be NULL)</param>
        /// <param name="cleanup">Callback to release any allocated resources (or NULL)</param>
        public void SetVideoFormatCallbacks(VideoFormatCallback videoFormat, CleanupVideoCallback cleanup)
        {
            if (videoFormat == null)
            {
                throw new ArgumentNullException(nameof(videoFormat));
            }

            this._videoFormatCallbackReference = videoFormat;
            this._cleanupCallbackReference     = cleanup;

            this.Manager.SetVideoFormatCallbacks(this.myMediaPlayerInstance, this._videoFormatCallbackReference, this._cleanupCallbackReference);
        }
예제 #2
0
 public void SetVideoFormatCallbacks(VideoFormatCallback videoFormatCallback, CleanupVideoCallback cleanupCallback)
 {
     myManager.GetInteropDelegate <SetVideoFormatCallbacks>().Invoke(this.Pointer, videoFormatCallback, cleanupCallback);
 }
        public void SetVideoFormatCallbacks(VlcMediaPlayerInstance mediaPlayerInstance, VideoFormatCallback videoFormatCallback, CleanupVideoCallback cleanupCallback)
        {
            if (mediaPlayerInstance == IntPtr.Zero)
            {
                throw new ArgumentException("Media player instance is not initialized.");
            }

            myLibraryLoader.GetInteropDelegate <SetVideoFormatCallbacks>().Invoke(mediaPlayerInstance, videoFormatCallback, cleanupCallback);
        }