Commit ddab22f2 authored by Martin Finkel's avatar Martin Finkel

VideoMosaic: Add comments

parent f082c4ed
......@@ -12,15 +12,21 @@ namespace VideoMosaic
{
InitializeComponent();
// this will load the native libvlc library (if needed, depending on the platform).
Core.Initialize();
// instanciate the main libvlc object
_libvlc = new LibVLC();
}
protected override void OnAppearing()
{
base.OnAppearing();
// create mediaplayer objects,
// attach them to their respective VideoViews
// create media objects and start playback
VideoView0.MediaPlayer = new MediaPlayer(_libvlc);
VideoView0.MediaPlayer.Play(new Media(_libvlc, VIDEO_URL, Media.FromType.FromLocation));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment