示例#1
0
        public void Dispose()
        {
            NewInstance            = null;
            NewInstanceFromMedia   = null;
            ReleaseInstance        = null;
            RetainInstance         = null;
            SetMedia               = null;
            GetMedia               = null;
            EventManagerNewIntance = null;
            IsPlaying              = null;
            Play                    = null;
            SetPause                = null;
            Pause                   = null;
            Stop                    = null;
            SetHwnd                 = null;
            GetHwnd                 = null;
            GetLength               = null;
            GetTime                 = null;
            SetTime                 = null;
            GetPosition             = null;
            SetPosition             = null;
            SetChapter              = null;
            GetChapter              = null;
            GetChapterCount         = null;
            WillPlay                = null;
            GetChapterCountForTitle = null;
            SetTitle                = null;
            GetTitle                = null;
            GetTitleCount           = null;
            SetPreviousChapter      = null;
            SetNextChapter          = null;
            GetRate                 = null;
            SetRate                 = null;
            GetState                = null;
            GetFPS                  = null;
            HasVideoOut             = null;
            IsSeekable              = null;
            IsPausable              = null;
            NextFrame               = null;
            Navigate                = null;
            ReleaseTrackDescription = null;

            if (VideoInterops != null)
            {
                VideoInterops.Dispose();
            }
            VideoInterops = null;
            if (AudioInterops != null)
            {
                AudioInterops.Dispose();
            }
            AudioInterops = null;
        }
示例#2
0
        internal LibVlcMediaPlayer(IntPtr libVlcDllHandle, Version vlcVersion)
        {
            NewInstance = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.NewInstance>(libVlcDllHandle, vlcVersion);
            NewInstanceFromMedia = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.NewInstanceFromMedia>(libVlcDllHandle, vlcVersion);
            ReleaseInstance = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.ReleaseInstance>(libVlcDllHandle, vlcVersion);
            RetainInstance = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.RetainInstance>(libVlcDllHandle, vlcVersion);
            SetMedia = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetMedia>(libVlcDllHandle, vlcVersion);
            GetMedia = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetMedia>(libVlcDllHandle, vlcVersion);
            EventManagerNewIntance = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.EventManager>(libVlcDllHandle, vlcVersion);
            IsPlaying = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.IsPlaying>(libVlcDllHandle, vlcVersion);
            Play = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.Play>(libVlcDllHandle, vlcVersion);
            SetPause = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetPause>(libVlcDllHandle, vlcVersion);
            Pause = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.Pause>(libVlcDllHandle, vlcVersion);
            Stop = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.Stop>(libVlcDllHandle, vlcVersion);
            SetHwnd = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetHwnd>(libVlcDllHandle, vlcVersion);
            GetHwnd = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetHwnd>(libVlcDllHandle, vlcVersion);
            GetLength = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetLength>(libVlcDllHandle, vlcVersion);
            GetTime = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetTime>(libVlcDllHandle, vlcVersion);
            SetTime = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetTime>(libVlcDllHandle, vlcVersion);
            GetPosition = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetPosition>(libVlcDllHandle, vlcVersion);
            SetPosition = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetPosition>(libVlcDllHandle, vlcVersion);
            SetChapter = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetChapter>(libVlcDllHandle, vlcVersion);
            GetChapter = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetChapter>(libVlcDllHandle, vlcVersion);
            GetChapterCount = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetChapterCount>(libVlcDllHandle, vlcVersion);
            WillPlay = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.WillPlay>(libVlcDllHandle, vlcVersion);
            GetChapterCountForTitle = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetChapterCountForTitle>(libVlcDllHandle, vlcVersion);
            SetTitle = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetTitle>(libVlcDllHandle, vlcVersion);
            GetTitle = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetTitle>(libVlcDllHandle, vlcVersion);
            GetTitleCount = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetTitleCount>(libVlcDllHandle, vlcVersion);
            SetPreviousChapter = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetPreviousChapter>(libVlcDllHandle, vlcVersion);
            SetNextChapter = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetNextChapter>(libVlcDllHandle, vlcVersion);
            GetRate = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetRate>(libVlcDllHandle, vlcVersion);
            SetRate = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.SetRate>(libVlcDllHandle, vlcVersion);
            GetState = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetState>(libVlcDllHandle, vlcVersion);
            GetFPS = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.GetFPS>(libVlcDllHandle, vlcVersion);
            HasVideoOut = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.HasVideoOut>(libVlcDllHandle, vlcVersion);
            IsSeekable = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.IsSeekable>(libVlcDllHandle, vlcVersion);
            IsPausable = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.IsPausable>(libVlcDllHandle, vlcVersion);
            NextFrame = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.NextFrame>(libVlcDllHandle, vlcVersion);
            Navigate = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.Navigate>(libVlcDllHandle, vlcVersion);
            ReleaseTrackDescriptionList = new LibVlcFunction<Signatures.LibVlc.MediaPlayer.ReleaseTrackDescriptionList>(libVlcDllHandle, vlcVersion);

            VideoInterops = new LibVlcMediaPlayerVideo(libVlcDllHandle, vlcVersion);
            AudioInterops = new LibVlcMediaPlayerAudio(libVlcDllHandle, vlcVersion);
        }
示例#3
0
        internal LibVlcMediaPlayer(IntPtr libVlcDllHandle, Version vlcVersion)
        {
            NewInstance            = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.NewInstance>(libVlcDllHandle, vlcVersion);
            NewInstanceFromMedia   = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.NewInstanceFromMedia>(libVlcDllHandle, vlcVersion);
            ReleaseInstance        = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.ReleaseInstance>(libVlcDllHandle, vlcVersion);
            RetainInstance         = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.RetainInstance>(libVlcDllHandle, vlcVersion);
            SetMedia               = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetMedia>(libVlcDllHandle, vlcVersion);
            GetMedia               = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetMedia>(libVlcDllHandle, vlcVersion);
            EventManagerNewIntance = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.EventManager>(libVlcDllHandle, vlcVersion);
            IsPlaying              = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.IsPlaying>(libVlcDllHandle, vlcVersion);
            Play                    = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.Play>(libVlcDllHandle, vlcVersion);
            SetPause                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetPause>(libVlcDllHandle, vlcVersion);
            Pause                   = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.Pause>(libVlcDllHandle, vlcVersion);
            Stop                    = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.Stop>(libVlcDllHandle, vlcVersion);
            SetHwnd                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetHwnd>(libVlcDllHandle, vlcVersion);
            GetHwnd                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetHwnd>(libVlcDllHandle, vlcVersion);
            GetLength               = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetLength>(libVlcDllHandle, vlcVersion);
            GetTime                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetTime>(libVlcDllHandle, vlcVersion);
            SetTime                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetTime>(libVlcDllHandle, vlcVersion);
            GetPosition             = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetPosition>(libVlcDllHandle, vlcVersion);
            SetPosition             = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetPosition>(libVlcDllHandle, vlcVersion);
            SetChapter              = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetChapter>(libVlcDllHandle, vlcVersion);
            GetChapter              = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetChapter>(libVlcDllHandle, vlcVersion);
            GetChapterCount         = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetChapterCount>(libVlcDllHandle, vlcVersion);
            WillPlay                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.WillPlay>(libVlcDllHandle, vlcVersion);
            GetChapterCountForTitle = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetChapterCountForTitle>(libVlcDllHandle, vlcVersion);
            SetTitle                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetTitle>(libVlcDllHandle, vlcVersion);
            GetTitle                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetTitle>(libVlcDllHandle, vlcVersion);
            GetTitleCount           = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetTitleCount>(libVlcDllHandle, vlcVersion);
            SetPreviousChapter      = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetPreviousChapter>(libVlcDllHandle, vlcVersion);
            SetNextChapter          = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetNextChapter>(libVlcDllHandle, vlcVersion);
            GetRate                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetRate>(libVlcDllHandle, vlcVersion);
            SetRate                 = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.SetRate>(libVlcDllHandle, vlcVersion);
            GetState                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetState>(libVlcDllHandle, vlcVersion);
            GetFPS                  = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.GetFPS>(libVlcDllHandle, vlcVersion);
            HasVideoOut             = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.HasVideoOut>(libVlcDllHandle, vlcVersion);
            IsSeekable              = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.IsSeekable>(libVlcDllHandle, vlcVersion);
            IsPausable              = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.IsPausable>(libVlcDllHandle, vlcVersion);
            NextFrame               = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.NextFrame>(libVlcDllHandle, vlcVersion);
            Navigate                = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.Navigate>(libVlcDllHandle, vlcVersion);
            ReleaseTrackDescription = new LibVlcFunction <Signatures.LibVlc.MediaPlayer.ReleaseTrackDescription>(libVlcDllHandle, vlcVersion);

            VideoInterops = new LibVlcMediaPlayerVideo(libVlcDllHandle, vlcVersion);
            AudioInterops = new LibVlcMediaPlayerAudio(libVlcDllHandle, vlcVersion);
        }
        public void Dispose()
        {
            NewInstance = null;
            NewInstanceFromMedia = null;
            ReleaseInstance = null;
            RetainInstance = null;
            SetMedia = null;
            GetMedia = null;
            EventManagerNewIntance = null;
            IsPlaying = null;
            Play = null;
            SetPause = null;
            Pause = null;
            Stop = null;
            SetHwnd = null;
            GetHwnd = null;
            GetLength = null;
            GetTime = null;
            SetTime = null;
            GetPosition = null;
            SetPosition = null;
            SetChapter = null;
            GetChapter = null;
            GetChapterCount = null;
            WillPlay = null;
            GetChapterCountForTitle = null;
            SetTitle = null;
            GetTitle = null;
            GetTitleCount = null;
            SetPreviousChapter = null;
            SetNextChapter = null;
            GetRate = null;
            SetRate = null;
            GetState = null;
            GetFPS = null;
            HasVideoOut = null;
            IsSeekable = null;
            IsPausable = null;
            NextFrame = null;
            Navigate = null;
            ReleaseTrackDescriptionList = null;

            if (VideoInterops != null)
                VideoInterops.Dispose();
            VideoInterops = null;
            if (AudioInterops != null)
                AudioInterops.Dispose();
            AudioInterops = null;
        }