パスワードで保護された Icecast ストリームを Windows Phone アプリケーションから再生しようとしています。
UriBuilder station = new UriBuilder();
station.Host="myhost";
station.Port=80;
station.Password = "password";
station.UserName = "user";
station.Path = "path";
station.Scheme = "http";
Uri stationUrl = station.Uri;
Debug.WriteLine(stationUrl);
BackgroundAudioPlayer.Instance.Track = new AudioTrack(stationUrl, "asd", "abc", "asd", null);
BackgroundAudioPlayer.Instance.Play();
私も使ってみました
BackgroundAudioPlayer.Instance.Track = new AudioTrack(new Uri("http://user:password@host:port/path", UriKind.Absolute), "abc", "as", "de", null);
再生できませんでした。ただし、ユーザー名とパスワードを削除すると、再生できます。
認証は PHP ファイルを使用して行われます。$_POST 値を出力して認証結果を確認したところ、空白でした。同じ URL が VLC で機能しますが、Firefox は IE では機能しません。
それを機能させる方法はありますか?