Exemplo n.º 1
0
 public void SetMedia(VlcMediaInternal media)
 {
     if (media == null)
     {
         throw new ArgumentNullException("media");
     }
     //
     VerifyObjectIsNotDisposed();
     //
     LibVlcInterop.libvlc_media_player_set_media(descriptor, media.Descriptor);
 }
Exemplo n.º 2
0
        public void SetMedia(VlcMediaInternal media)
        {
            if (media == null)
            {
                throw new ArgumentNullException("media");
            }
            //
            VerifyObjectIsNotDisposed();
            //
            libvlc_exception_t exc = new libvlc_exception_t();

            LibVlcInterop.libvlc_exception_init(ref exc);
            LibVlcInterop.libvlc_media_player_set_media(descriptor, media.Descriptor, ref exc);
            if (exc.b_raised != 0)
            {
                throw new VlcInternalException(exc.Message);
            }
        }