Playing works when ran with mono debug

This commit is contained in:
watsonb8
2019-05-22 18:59:15 -04:00
parent a4276a0d5d
commit 5427d08dd7
11 changed files with 181 additions and 36 deletions

View File

@@ -1,4 +1,5 @@
using System;
using LibVLCSharp.Forms.Shared;
using Xamarin.Forms;
using Xamarin.Forms.Platform.GTK;
using Xamarin.Forms.Platform.GTK.Helpers;
@@ -11,7 +12,12 @@ namespace Aurora.gtk
public static void Main(string[] args)
{
Gtk.Application.Init();
Forms.Init();
LibVLCSharpFormsRenderer.Init();
// For some reason, Xamarin does not pick the LibVLCSharp.Form.Platforms.Gtk assembly as a renderer assembly.
// Add it manually.
global::Xamarin.Forms.Forms.Init(new[] { typeof(LibVLCSharp.Forms.Platforms.GTK.VideoViewRenderer).Assembly });
if (PlatformHelper.GetGTKPlatform() == GTKPlatform.Windows)
{