このサイトは、Windows Phone 7 用の microsoft の例です。つまり、Background Audio Player SampleまたはSample この例では、プレイリストはクラス AudioPlayer で次のリストとして形成されます。
private static List<AudioTrack> _playList = new List<AudioTrack>
{
new AudioTrack(new Uri("Kalimba.mp3", UriKind.Relative),
"Kalimba",
"Mr. Scruff",
"Ninja Tuna",
null),
new AudioTrack(new Uri("Maid with the Flaxen Hair.mp3", UriKind.Relative),
"Maid with the Flaxen Hair",
"Richard Stoltzman",
"Fine Music, Vol. 1",
null),
new AudioTrack(new Uri("Sleep Away.mp3", UriKind.Relative),
"Sleep Away",
"Bob Acri",
"Bob Acri",
null),
// A remote URI
new AudioTrack(new Uri("http://traffic.libsyn.com/wpradio/WPRadio_29.mp3", UriKind.Absolute),
"Episode 29",
"Windows Phone Radio",
"Windows Phone Radio Podcast",
null)
};
そして、たとえば MainPage.cs で作成した場合、質問があります。
private static List<AudioTrack> playList2 = new List<AudioTrack>
{
new AudioTrack(new Uri("http://myserver.com/tracks/track1.mp3", UriKind.Absolute),
"MyTrack1",
"Windows Phone Radio",
"Windows Phone Radio Podcast",
null),
new AudioTrack(new Uri("http://myserver.com/tracks/track2.mp3", UriKind.Absolute),
"MyTrack2",
"Windows Phone Radio",
"Windows Phone Radio Podcast",
null),
new AudioTrack(new Uri("http://myserver.com/tracks/track3.mp3", UriKind.Absolute),
"MyTrack3",
"Windows Phone Radio",
"Windows Phone Radio Podcast",
null)
};
クラス MainPage のいくつかのインターネット ラジオへのリンクになりますが、AudioPlayer で送信できます。何をすべきか、どこを掘るべきかをアドバイスします。助けて