MediaElement does not play a stream

So basically I just opened a new store C# blank app and put this in cs file:
private void MediaElement_MediaFailed(object sender, ExceptionRoutedEventArgs e)
gumb.Content = e.ErrorMessage;
System.Diagnostics.Debug.WriteLine(e.ErrorMessage);
private async void gumb_Click(object sender, RoutedEventArgs e)
var myUri = new Uri (string.Format("http://173.192.137.34:8042"), UriKind.RelativeOrAbsolute);
var uriStreamReference = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromUri(myUri);
var uriStream = await uriStreamReference.OpenReadAsync();
MediaElement.SetSource(uriStream, "audio/aac");
MediaElement.Play();
And I put this code in XAML:
<Grid>
<Button x:Name="gumb" Content="Play" Click="gumb_Click" />
<MediaElement x:Name="MediaElement"
Width="400"
AutoPlay="True"
AreTransportControlsEnabled="False"
AudioCategory="BackgroundCapableMedia"
MediaFailed="MediaElement_MediaFailed"
/>
</Grid>
And so the Play button only generates this output: MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0xC00D36C4
Note that when you load that streaming URL in VLC player it plays normally and says that stream is of type M4A/AAC which I have found to be supported by windows phone store app (documentation).
There is one more possible stream (of the same radio station) which also does not work:
http://173.192.137.34:8006/
One more interesting fact is that I have found a few internet streaming radio stations that DO play in my simple code so it feels like this codec maybe unsupported by my code, but I was unable to understand what is missing. So far... Although I'm already wrecking
my brain for weeks on this.
I am developing this app primarily for Windows Phone 8.1 / RT but I would like it to be universal, if possible, for future to make a version for tablets.
One other thing is that this same code WORKS on my Windows 8.1 store app, on my x86 tablet/laptop. But I cannot understand why it does not work on Windows Phone. I am deploying on Lumia 930 with Denim, but I suspect it does not matter which Lumia 8.1 is
it.

Those appear to be Shoutcast streams and report content type audio/mpeg.
Windows Phone does not support Shoutcast natively, you would need get or write a MediaStreamSource implementation which can handle shoutcast streams.
Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast
your votes for existing suggestions.

Similar Messages

  • Safari does not play movie stream

    Does anyone have any idea why Safari does not play the movies on the web page
    http://www.3sat.de/delta/
    You can find them under "Web-TV" (you have to click a little bit until a small window opens which has a button called "video starten" at the bottom right).
    I believe the movies are reaplayer video streams.
    Needless to say that the movies work just fine in Firefox ...
    Any ideas, hints, pointers will be appreciated.
    Best regards,
    Gabriel.

    Hello Gabriel,
    The video does play for me in a popup window via realplayer.
    it also has the option to open in WMP.
    Web TV
    It will not play in realplayer itself, when i click for it to play in real Player this
    Server alert
    Unable to locate server. This server does not have a DNS entry. Please check the server name in the URL and try again.
    rtsp://real.mdcs.dtag.de/zdf/3sat/delta/delta060406_zukunft3_16zu9h.rm
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.3sat.de%2Fdelta%2F
    Safari is also picky about code, this one is not the poorest & it does work for me so it seems something is interfering in your user account or computer,.
    Have you tried the site in a test account if not that would be telling.
    Let us know if it works there.
    Regards,
    Eme'~[)
    Helpful.. Solved.....Why Award points?

  • Video does not play on external plasma monitor

    Forum
    Here is my situation.
    I received footage captured with a Panasonic HVX-200, the specs are:
    29.97fps, Compressor: DVCPRO HD 720p 60, frame size: 960x720
    I use an Intensity Pro video card for monitoring on a 42" Samsung LCD. When the Intensity Pro card is set to HDTV 720p 60 (1280x720) the video does not play on the LCD, all I get is a still frame. When the Intensity Pro card is set to Intensity NTSC 720x486, it plays on the LCD but it's not at its best quality. The footage always plays fine in the FCP Canvas and Viewer windows.
    Any ideas on what may be going on?

    YOu need to be using DVCPRO HD 720p60 8-bit 59.94...and whatever DECKLINK header that is there for the card. I use the Kona 3, so mine is AJA KONA DVCPRO HD 720p60 8-bit 59.94. 59.94 because no matter what frame rate you shoot, the video stream is a 59.94 stream to the monitor.
    I hope that does it. No experience with the Intensity.
    Shane

  • MOV video does not play

    Hello guys,
    I have posted a H.264 video clip on my website. It's size is 31 MB. It had played great when I was testing it from my desktop, but once I post it, it does not play. "Q" logo shows up, then the very first frame of the video shows up, but that's it. It does not start to play. Here is the link:
    http://www.icebergfilms.com/Video_files/demo1.mov
    Any idea what I do wrong?
    Thank you so much

    Hi Kirk,
    reason I am doing all these conversions is to achieve the smallest file possible for internet streaming in shortest period of time. I am exporting my video from Final Cut Pro timeline as QT movie. Then it goes to Compressor to be converted to ProRes to make it progressive and to change frame size. Resulting file goes to Compressor again to be converted to H.264. ProRes is an intermediate codec saving a lot of compression time.
    I am trying to check settings during last conversion (from ProRes to H.264): Make it Fast Start and change the audio to AAC. But even though resulting file shows that video is AAC, the file is not any smaller at all. And video does not upload any faster with Fast Start on. So obviously, I am doing something wrong.

  • Ogv video does not play in Firefox 3.6 on a server

    I have successfully create an ogv video in Firefogg. The video plays on my local computer in Firefox. However, when I put the video on my university server, the video does not play any more. Here is a link to the video: http://www.iupui.edu/~streamit/huang/html5video/html5video.html
    I don't know how to solve the problem. Help. Many thanks.

    No problems here on Linux, that video plays for me.
    Try:
    * "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • JMF does not play sound for .avi file and no video for .mov file

    Hi,
    I am trying to use JMStudio to transmit media files from one computer to another.
    However, when I try to transmit .mov file it only plays audio no video is displayed on other computer.
    And when I transmit .avi file I can see the Video on other machine but it does not
    play any sound.
    I tried using capture devices like - webcam and mic and they work perfectly fine.
    Can anyone please tell me the solution for this.
    Thank you in advance.

    I discovered the same problem too..
    I think it is a general Format problem.
    When i analyzed the tracks in my .avi and .mov files before rtp streaming with jmf, I found each media containing just 1 track..
    This track was a video track, no audio at all.
    Other formats I tried, like .mpg, revealed both audio and video tracks, and performed perfectly.
    I'm still on more research.. will get the solution to you if u don't find one before I'm done..

  • ITunes player does not play songs since upgrading to 10.5.1; not fixed with 10.5.2 upgrade. What now?

    After upgrading iTunes on my laptop to version 10.5.1, my player will NOT play any songs. My Library seems intact and no songs appear to be missing, but no song will play --not a song downloaded from iTunes Store, nor a song downloaded from a CD. I was hoping version 10.5.2 would fix this, but apparently not. Still not working. Songs do play on my iPod and on my iPhone and I can transfer songs from my laptop to my devices; I can also download Apps to my laptop through the iTunes Store, etc.--all other functions of iTunes seem to be okay, only the player is not working. (My laptop is an hp Probook with Intel i5 chip, Windows 7 Pro OS.)

    Does it look like the song is playing at the top of iTunes? Can you see the timer moving?
    Also, make sure the volume slider isn't all the way to the left (mute).
    This Apple document may help too -> iTunes and QuickTime for Windows: Audio does not play or plays incorrectly

  • My disk drive does not play any original dvd or cd anymore, but the copies work fine, no matter which format. Do I need a new disk drive?

    Hello All,
    since last week my disk drive does not play any original DVD or CD anymore, but copied ones, no matter which format work fine. I am a bit confused that the copied ones still work.
    Anybody experienced the same? Will I have to get a new disk drive? Unfortunately the warranty expired last month
    Looking forward to your answers and thanks,
    Yvonne

    An external DVD drive from http://www.macsales.com/ may solve your problems.

  • DVD Player Does Not Play DVDs

    I recently bought HBO DVDs and it does not play in my Apple system. I have an error that states, "this format is not supported" what is wrong? or codec issues?

    Without going into a huge tirate about motive behind this from different companies. Just download this player and it should work for you.
    http://www.versiontracker.com/dyn/moreinfo/macosx/14738
    Cheers Don

  • Macbook Pro does not play audio part of video

    Hi,
    I have a Macbook Pro (early 2013 with OS 10.10.1).
    A colleague sent me a video file, which was originally recorded in MTS format. The sound portion of it does not play on my machine, although it generally can handle MTS. I have a colleague with a Windows PC, for him the audio plays ok. I have another colleague with an older MBP, for him the audio also plays ok. But then I have two more colleagues with a newer MBP like me, and for none of us the audio plays at all. The strange thing is that I can open the file in various editors such as Premiere, Audition, or Logic Pro, and they would all show the waveform of the audio, even the VU meters react normally, but there still is no audible sound.
    On the machines that play the sound, we have tried converting the video and exporting the audio portion into various other formats, but with the very same result. None of them play sound for me. This is extremely weird and we have no answer what could be the problem.
    Any help would be very much appreciated.
    Thanks a lot & best regards,
    Rainer

    Hi Eric,
    thanks for the reply.
    As I said, we had tried several editors and players, as well as all kinds of formats, using all kinds of converters, but so far to no avail.
    The AAC codec is a common codec for the Mac, so there should be no need to convert it. I have videos with that codec that play ok. It already turned out that converting the video file to other formats does not make any difference.
    But thanks anyway,
    Rainer

  • ITunes 11.1.5.5 on my Windows 7 PC does not play songs

    After upgrading this version, the iTunes player bar graph does not move when I click the play arrow. Any ideas, please share.

    Hello Raag Thaal,
    I would be concerned too if my music didn't playback in iTunes.  I found an article that specifically addresses issues with the music not playing and the playhead not progressing in iTunes.  I recommend following the steps in the article below:
    iTunes and QuickTime for Windows: Audio does not play or plays incorrectly
    http://support.apple.com/kb/ts1362
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • When i plug my iphone 5 to the computer, it does not play any sound except the music app

    I need help to fix my iphone 5. i recently plug in my iphone 5 into the computer and tried to play music on youtube, or websites it does not play anysounds. but when i tried to play music on the music app it works normal. anyone knows please help me. thank you

    PrinceKavin wrote:
    I need help to fix my iphone 5. i recently plug in my iphone 5 into the computer and tried to play music on youtube, or websites it does not play anysounds....
    Perhaps you need to spend a little bit of time here...
    iPhone User Guide (For iOS 6 Software)

  • We love apple email, but it does not play wall with other venders when you want to use your own domain (lags, disconnections, etc.)?   What vendor should we use to make it push and work well?  We want to stay with Apple Mail.

    Help, our AppleMail does not play well with other Vendord to use our own domain.   iCloud mail works great, but so far others we have tried lag, disconnec, etc. not nearly as good as icloud mail.   Should we try exchange or office 365 plans with Apple Mail/  a lot more expensive?

    Microsoft Exchange is the best business solution, Office 365 will give a hosted version that works well, as you noted it is not the cheapest. You should also look at Zimbra, an excellent service.

  • I applied a template to a page with SWFs and now that page does not play the SWFs. Why?

    I applied a template to a page with SWFs and now that page does not play the SWFs (just a blank area where the SWF should be). When I detach the template it will play the flash file. This site will eventually be updated via Adobe Contribute. And I just discovered that when applying a template to a page that uses HTML datasets (Master/Detail),it no longer reads the Master/detail regions and displays a blank. Any thoughts?
    [Moved to Dreamweaver forum by moderator]

    Firstly, you shouldn't really 'apply' a template to a page, you should create a child page by going to FILE>NEW>Page from Template.  Too many things can happen when applying a template the way you are doing it. eg:; editable and non-editable regions not matching up and being asked where to place these regions and in all likelihood, you end up with 2 or more of the same region.
    When a swf file is inserted into a page, a corresponding Scripts folder is written automatically is stored in the root of the site - it is also linked to in the head of the document. What I believe is happening is that when you apply a template to the page, the Template has no idea that there is a swf file on the page and is not aware of the correct link to the Scripts folder.  If you do a test and add the swf file to the template page itself, I bet that the links to the swf and the scripts folder are correct - because DW knows the correct path to the script file.   Hence the reason the page probably works when you detach it from a template.

  • I am trying to stream via ESPNWatch but I get a message saying I have a popup blocker that does not allow the streaming to happen. I unchecked the pop up blocker box in the Safari preferences to no avail. Any ideas?

    I am trying to stream via ESPNWatch but I get a message saying I have a popup blocker that does not allow the streaming to happen. I unchecked the pop up blocker box in the Safari preferences to no avail. Any ideas?

    Might be a Safari extension...
    From your Safari menu bar click Safari > Preferences then select the Extensions tab.
    If there are any extensions installed, turn that OFF, then quit and relaunch Safari to test.

Maybe you are looking for