Avalonia / LibVLCsharp 支持 iOS、Android 和 WASM

huangapple go评论114阅读模式
英文:

Avalonia / LibVLCsharp support for iOS, Android and WASM

问题

我计划使用最新的AvaloniaUI和LibVLCSharp创建一个跨平台(Windows、Linux、macOS、Android、iOS、Wasm)音频播放器。不幸的是,Avalonia只为Windows、Linux和macOS提供支持,但官方最近引入了Android和iOS支持,我认为这可能只是文档不足的问题。

所以目前的情况如何呢?是否可能使用LibVLCSharp在所有列出的平台上创建一个真正的跨平台播放器?如果不行,有没有其他替代方案,可以与AvaloniaUI一起使用?

我找到了这些用于C#的库,它们(部分)能够播放音频:

  • LibVLCSharp(非托管/包装器,包括Android + iOS在内的跨平台支持)
  • SharpAudio(大部分是托管的,跨平台的,但目前对编解码器的支持较差)
  • cscore(非托管/包装器,设计良好,但开发停滞不前)
  • libsoundio-sharp(非托管,相当原始)
  • ManagedBass(BASS的非托管/包装器,非常棒,但只有开源项目可以免费使用)
  • NAudio(非常出色的托管库,但目前仅支持Windows,尽管有朝一日可能会发展成为跨平台库)
英文:

I'm planning to create a cross platform (Windows, Linux, macOS, Android, iOS, Wasm) audio player using latest AvaloniaUI along with LibVLCSharp. Unfortunately only support for Windows, Linux and macOS is listed for Avalonia.

I think that this might be a lack of documentation only, since Avalonia pretty recently introduced Android and iOS support officially.

So how is the state of this? Would it be possible to create a REAL cross platform player for all the listed platforms with LibVLCSharp? And if not, is there an alternative, that could be used with AvaloniaUI?

I found these libs for C#, that are (partially) capable of playing audio:

  • LibVLCSharp (unmanaged/wrapper, cross platform including Android + iOS)
  • SharpAudio (mostly managed, cross platform, but poor codec support atm)
  • cscore (unmanaged/wrapper, well designed, development stalled)
  • libsoundio-sharp (unmanaged, pretty raw)
  • ManagedBass (unmanaged/wrapper for BASS, awesome but only free for open source)
  • NAudio (awesome managed library, but windows only atm, although efforts to evolve to cross platform)

答案1

得分: 0

为了拥有一个真正的跨平台应用程序,您确实可以使用LibVLCSharp来支持以下平台通过NuGet包:

还可以参考https://github.com/videolan/libvlcsharp#installation。

英文:

So to have a real cross platform app, you indeed CAN use LibVLCSharp for the following platforms via nuget package:

Also see https://github.com/videolan/libvlcsharp#installation

huangapple
  • 本文由 发表于 2023年2月18日 20:21:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/75493300.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定