Program.cs 558 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
using System;
using libvlc;

namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            var instance = new Instance(0, null);

            var media = libvlc_media.LibvlcMediaNewLocation(instance.NativeReference,
                "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4");
           
            var mediaPlayer = libvlc_media_player.LibvlcMediaPlayerNewFromMedia(media);
            libvlc_media_player.LibvlcMediaPlayerPlay(mediaPlayer);

            Console.ReadKey();
        }
    }
}