简体   繁体   English

xamarin.forms 中的音频播放器

[英]Audio player in xamarin.forms

I am looking for a audio player feature to add to my app, I would like to have a play, stop/pause, and progessbar option for the player.我正在寻找要添加到我的应用程序的音频播放器功能,我想要播放器的播放、停止/暂停和进度条选项。 I reffered to https://developer.xamarin.com/samples/monodroid/Example_WorkingWithAudio/ .我参考了https://developer.xamarin.com/samples/monodroid/Example_WorkingWithAudio/ I want to implement the feature for android, iOS, and windows.我想为 android、iOS 和 windows 实现该功能。

Are there any available plugins which I can use or any other reference link which can help..有没有我可以使用的可用插件或任何其他可以帮助的参考链接..

Take a look at the Xamarin-Forms-Labs Plugin it has a Audioservice.看看Xamarin-Forms-Labs 插件,它有一个音频服务。

Here is the code for the interface.这是接口的代码

And here an usage example 是一个使用示例

对于那些面临同样问题的人,您可以通过在依赖服务和本机(特定于平台)api 的帮助下自己创建音频播放器来实现这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM