Exemplo n.º 1
0
 public MediaPlayer(Media media)
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler, ref ex);
     //this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler);
     if (this.mplayerHandler == IntPtr.Zero) throw new VlcException();
 }
Exemplo n.º 2
0
        public Media(Core core, string path)
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            this.mediaHandler = libvlc_media_new(core.Handler, path, ref ex);
            if (this.mediaHandler == IntPtr.Zero)
            {
                throw new VlcException();
            }
        }
Exemplo n.º 3
0
        public Core(string[] argv)
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            this.coreHandler = libvlc_new(argv.Length, argv, ref ex);
            if (this.coreHandler == IntPtr.Zero)
            {
                throw new VlcException();
            }
        }
Exemplo n.º 4
0
        public MediaPlayer(Media media)
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler, ref ex);
            //this.mplayerHandler = libvlc_media_player_new_from_media(media.Handler);
            if (this.mplayerHandler == IntPtr.Zero)
            {
                throw new VlcException();
            }
        }
Exemplo n.º 5
0
 static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
Exemplo n.º 6
0
 static extern IntPtr libvlc_media_new(IntPtr p_instance,
     [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
Exemplo n.º 7
0
 public Media(Core core, string path)
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     this.mediaHandler = libvlc_media_new(core.Handler, path, ref ex);
     if (this.mediaHandler == IntPtr.Zero) throw new VlcException();
 }
Exemplo n.º 8
0
 static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray,
                                                      ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
Exemplo n.º 9
0
 static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray,
     ArraySubType = UnmanagedType.LPStr)] string[] argv, ref libvlc_exception_t ex);
Exemplo n.º 10
0
 public void Stop()
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     libvlc_media_player_stop(this.mplayerHandler, ref ex);
 }
Exemplo n.º 11
0
 static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 12
0
 static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 13
0
 static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
Exemplo n.º 14
0
 static extern void libvlc_media_player_set_drawable(IntPtr player, IntPtr drawable, ref libvlc_exception_t ex);
Exemplo n.º 15
0
 static extern int libvlc_media_player_play(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 16
0
 static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
Exemplo n.º 17
0
 static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 18
0
 static extern IntPtr libvlc_media_player_get_media(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 19
0
 static extern void libvlc_media_player_set_media(IntPtr player, IntPtr media, ref libvlc_exception_t ex);
Exemplo n.º 20
0
        public void Stop()
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            libvlc_media_player_stop(this.mplayerHandler, ref ex);
        }
Exemplo n.º 21
0
 static extern void libvlc_media_player_stop(IntPtr player, ref libvlc_exception_t ex);
Exemplo n.º 22
0
 public void Pause()
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     libvlc_media_player_pause(this.mplayerHandler, ref ex);
 }
Exemplo n.º 23
0
        public void Pause()
        {
            libvlc_exception_t ex = new libvlc_exception_t();

            libvlc_media_player_pause(this.mplayerHandler, ref ex);
        }
Exemplo n.º 24
0
 static extern IntPtr libvlc_media_new(IntPtr p_instance,
                                       [MarshalAs(UnmanagedType.LPStr)] string psz_mrl, ref libvlc_exception_t ex);
Exemplo n.º 25
0
 static extern IntPtr libvlc_media_player_new_from_media(IntPtr media, ref libvlc_exception_t ex);
Exemplo n.º 26
0
 public Core(string[] argv)
 {
     libvlc_exception_t ex = new libvlc_exception_t();
     this.coreHandler = libvlc_new(argv.Length, argv, ref ex);
     if (this.coreHandler == IntPtr.Zero) throw new VlcException();
 }