コード例 #1
0
ファイル: MainActivity.cs プロジェクト: Jddl/VlcXamarin
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Set our view from the "main" layout resource
            SetContentView (Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button> (Resource.Id.myButton);

            button.Click += delegate {
                button.Text = string.Format ("{0} clicks!", count++);
                if(mLibVLC == null)
                    mLibVLC = new LibVLC();
                mLibVLC.PlayMRL("http://www.montemagno.com/sample.mp3");
            };
        }
コード例 #2
0
ファイル: VLCPlugin.cs プロジェクト: chris-pie/Multimus
 public VLCPlugin()
 {
     Core.Initialize();
     libvlc = new LibVLC();
 }
コード例 #3
0
ファイル: LibVLCTests.cs プロジェクト: wzq0621/libvlcsharp
        public void AddInterface()
        {
            var libVLC = new LibVLC();

            Assert.True(libVLC.AddInterface(string.Empty));
        }