Skip to content

Commit

Permalink
Removed LibVlc folder check. Successfully tested on Kubuntu and MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
radiolondra committed Apr 2, 2022
1 parent dba5683 commit 72340f8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions AvaVLCControl/AvaVLCControl/ViewModels/PlayerControlModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using LibVLCSharp.Shared;
using Avalonia;
using Avalonia.Platform;
using LibVLCSharp.Shared;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand All @@ -18,8 +20,17 @@ public PlayerControlModel()
{
if (!Avalonia.Controls.Design.IsDesignMode)
{
var libVlcDirectoryPath = Path.Combine(Environment.CurrentDirectory, "libvlc", IsWin64() ? "win-x64" : "win-x86");
Core.Initialize(libVlcDirectoryPath);
var os = AvaloniaLocator.Current.GetService<IRuntimePlatform>().GetRuntimeInfo().OperatingSystem;
//if (os == OperatingSystemType.WinNT)
//{
// var libVlcDirectoryPath = Path.Combine(Environment.CurrentDirectory, "libvlc", IsWin64() ? "win-x64" : "win-x86");
// Core.Initialize(libVlcDirectoryPath);
//}
//else
{
Core.Initialize();
}


_libVLC = new LibVLC(
enableDebugLogs: true
Expand Down

0 comments on commit 72340f8

Please sign in to comment.