Skip to content

About

This project downloads the binaries needed for LibVLCSharp on the Linux computer. It is only for LibVLC Supported Linux Distros.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

A project that downloads you everything necessary for LibVLCSharp to work on your Linux Distro :) It is done with a bit of AI help as i don´t know how some things work.

Still in early WIP

Dependency License
CliWrap MIT-License
GnomeStack.Os.Release MIT-License

this is an example on how to use my project in Avalonia projects:

App.axaml.cs:

using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using LibVLCSharp.Shared;
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using LibVLC.Linux;

namespace sb1_sb2_sb3_xml_to_Csharp_converter;

public partial class App : Application
{
    public override void Initialize()
    {
        AvaloniaXamlLoader.Load(this);
    }

    public override void OnFrameworkInitializationCompleted()
    {
        if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
        {
            desktop.MainWindow = new MainWindow();
            if (OperatingSystem.IsLinux())
            {
                var installer = new LibVLCLinux();
                installer.InstallVLC();
            }
        }

        base.OnFrameworkInitializationCompleted();
    }
}

and in the .csproj just add this line:

<PackageReference Include="LibVLC.Linux" Version="1.0.0.15"/>

only remember to change this, if you have it in your project:

 var SoundVLC = new LibVLC();

to this:

 var SoundVLC = new LibVLCSharp.Shared.LibVLC();

About

This project downloads the binaries needed for LibVLCSharp on the Linux computer. It is only for LibVLC Supported Linux Distros.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages