Initial data:
- windows phone 7.1 application;
- video streaming (video: MPEG‐4 AVC (part 10) (H.264); audio: MPEG AAC Audio (mp4a));
- not a smooth streaming;
- opened in VLC with any problems;
- all capabilities are included (ID_CAP_MEDIALIB, ID_CAP_MICROPHONE, ID_CAP_NETWORKING and other).
I am using a MediaElement for opening video stream with custom http url:
media.Source = new Uri("streaming url");
media.DownloadProgressChanged += this.media_DownloadProgressChanged;
media.MediaFailed += this.media_MediaFailed;
media.MediaEnded += this.media_MediaEnded;
media.Play();
MediaFailed gives "3100 An error has occurred" error without any additional description.
Seems like listed codecs are supported.
Also I tried this code:
var mediaPlayerLauncher = new MediaPlayerLauncher
{
Location = MediaLocationType.Install,
Media = new Uri("streaming url", UriKind.Absolute),
Controls = MediaPlaybackControls.All,
};
mediaPlayerLauncher.Show();
but media player was not able to play video.
What can cause a problem? How to test whether video stream is compatible with Windows Phone?
Thanks in advance.