Ejemplo n.º 1
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            HandleManager.Remove(this);

            _releaseInstanceFunction.Delegate(InstancePointer);

            InstancePointer = IntPtr.Zero;

            _onVlmMediaAddedHandle.Free();
            _onVlmMediaRemovedHandle.Free();
            _onVlmMediaChangedHandle.Free();
            _onVlmMediaInstanceStartedHandle.Free();
            _onVlmMediaInstanceStoppedHandle.Free();
            _onVlmMediaInstanceStatusInitHandle.Free();
            _onVlmMediaInstanceStatusOpeningHandle.Free();
            _onVlmMediaInstanceStatusPlayingHandle.Free();
            _onVlmMediaInstanceStatusPauseHandle.Free();
            _onVlmMediaInstanceStatusEndHandle.Free();
            _onVlmMediaInstanceStatusErrorHandle.Free();

            _disposed = true;
        }
Ejemplo n.º 2
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            HandleManager.Remove(this);
            //EventManager.Dispose();
            onPlayingHandle.Free();
            onPausedHandle.Free();
            onOpeningHandle.Free();
            onBufferingHandle.Free();
            onStopedHandle.Free();
            onForwardHandle.Free();
            onBackwardHandle.Free();
            onEndReachedHandle.Free();
            onMediaChangedHandle.Free();
            onNothingSpecialHandle.Free();
            onPausableChangedHandle.Free();
            onPositionChangedHandle.Free();
            onSeekableChangedHandle.Free();
            onSnapshotTakenHandle.Free();
            onTimeChangedHandle.Free();
            onTitleChangedHandle.Free();
            onVideoOutChangedHandle.Free();
            onLengthChangedHandle.Free();
            onEncounteredErrorHandle.Free();
            ReleaseMediaPlayerFunction.Delegate(InstancePointer);
            InstancePointer = IntPtr.Zero;

            disposed = true;
        }
Ejemplo n.º 3
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            //EventManager.Dispose();
            HandleManager.Remove(this);

            EventManager.Detach(EventTypes.MediaPlayerPlaying, _onPlaying, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerPaused, _onPaused, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerOpening, _onOpening, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerBuffering, _onBuffering, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerStopped, _onStoped, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerForward, _onForward, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerBackward, _onBackward, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerEndReached, _onEndReached, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerMediaChanged, _onMediaChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerNothingSpecial, _onNothingSpecial, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerPausableChanged, _onPausableChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerPositionChanged, _onPositionChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerSeekableChanged, _onSeekableChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerSnapshotTaken, _onSnapshotTaken, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerTimeChanged, _onTimeChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerTitleChanged, _onTitleChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerVideoOutChanged, _onVideoOutChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerLengthChanged, _onLengthChanged, IntPtr.Zero);
            EventManager.Detach(EventTypes.MediaPlayerEncounteredError, _onEncounteredError, IntPtr.Zero);

            _onPlayingHandle.Free();
            _onPausedHandle.Free();
            _onOpeningHandle.Free();
            _onBufferingHandle.Free();
            _onStopedHandle.Free();
            _onForwardHandle.Free();
            _onBackwardHandle.Free();
            _onEndReachedHandle.Free();
            _onMediaChangedHandle.Free();
            _onNothingSpecialHandle.Free();
            _onPausableChangedHandle.Free();
            _onPositionChangedHandle.Free();
            _onSeekableChangedHandle.Free();
            _onSnapshotTakenHandle.Free();
            _onTimeChangedHandle.Free();
            _onTitleChangedHandle.Free();
            _onVideoOutChangedHandle.Free();
            _onLengthChangedHandle.Free();
            _onEncounteredErrorHandle.Free();
            _releaseMediaPlayerFunction.Delegate(InstancePointer);
            InstancePointer = IntPtr.Zero;

            _disposed = true;
        }
Ejemplo n.º 4
0
        protected void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            HandleManager.Remove(this);
            ReleaseInstanceFunction.Delegate(InstancePointer);
            InstancePointer = IntPtr.Zero;

            disposed = true;
        }
Ejemplo n.º 5
0
        protected void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            HandleManager.Remove(this);
            EventManager.Dispose();
            _onMetaChangedHandle.Free();
            _onSubItemAddedHandle.Free();
            _onDurationChangedHandle.Free();
            _onParsedChangedHandle.Free();
            _onFreedHandle.Free();
            _onStateChangedHandle.Free();
            _releaseMediaFunction.Delegate(InstancePointer);
            InstancePointer = IntPtr.Zero;

            _disposed = true;
        }
Ejemplo n.º 6
0
 public void Dispose()
 {
     HandleManager.Remove(this);
     Vlc.Free(InstancePointer);
     InstancePointer = IntPtr.Zero;
 }