Monodroid。 Xamarin。如何让我流的MP3播放Xamarin工作室为Android? [英] Monodroid. Xamarin. How do I make streaming mp3 playback in Xamarin Studio for Android?
本文介绍了Monodroid。 Xamarin。如何让我流的MP3播放Xamarin工作室为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经寻找了一段时间,从来没有来到一个很好的教程,展示了如何实现此音频流功能。有一些Java教程在那里,但我奋斗了解这些。有谁知道关于这个专题的一个很好的教程为升C?
I have searched for a while, and never came to a good tutorial showing how to implement this audio streaming feature. There are some Java tutorials out there, but I have struggle understanding those. Does anybody know of a good tutorial on the topic for c sharp?
推荐答案
终于找到了解决办法,这竟然是真的很简单
Finally found the solution, which turned out to be really simple
string url = "...";
player.SetAudioStreamType(Stream.Music);
player.SetDataSource(url);
player.Prepare();
player.Start();
这篇关于Monodroid。 Xamarin。如何让我流的MP3播放Xamarin工作室为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文