Why does BackgroundMediaPlayer NOT play mp3 streams?

I tried to make a universal app, I have a successful Win8 app, now I have tried to make a WinPhone version and find that this class can't play mp3 streams, for example
http://europaplus.hostingradio.ru:8014/europaplus256.mp3

Hello,
There is no standard mp3 streaming protocol. Some sites use pseudo streaming by throttling a standard progressive download of mp3 data. While pseudo streaming may work on some Microsoft platforms is not officially supported by the Media Engine out of
the box. A major problem with pseudo streams is their interaction with the internet cache. It is possible to overload the cache with extended listening sessions and eventually use up all the storage on the device. This is the big reason
pseudo streaming is not supported.
I would recommend that you check with the stream provider and ask them what streaming protocol they are using. If they are simply using HTTP with no underlying streaming protocol such as HLS or DASH then they are using pseudo streaming and you may have
problems with playback on the current and future Microsoft platforms.  
If you know that the stream provider's content is consistent (or you are the content provider) one possible solution is to write a custom
MediaStremSource that will handle the network interactions, local cacheing and packet parsing. You can then pass the parsed samples down stream to the Media Engine for decoding and playback.
The best solution however is to convince the content provider to switch to a real streaming protocol or offer a separate URL that supports a true streaming protocol. To future proof any new streaming implementation I always recommend MPEG DASH.
I hope this helps,
James
Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

Similar Messages

  • Why does iphoto not play my movies

    I have a macbook pro. I have transferred photos and movies from SD cards that are otherwise part of my Nikon D 5100 and Panasonic TZ 40. After initially loading the photos and movies, all movies were playing as expected. However, somewhere after updating to OX 10.9.4 they have stopped playing. The icon for the movie still shows, but the time of the movie appears as ZERO. When I click to play, the movie loads begins to play but ends almost immediately.
    Currently the movies are not playing.

    Select one of the videos in iPhoto and user the File ➙ Reveal in Finder ➙ Original menu option.  Does that take you to the full video file in the Masters folder?  COPY it to the desktop and see if it will play with Quicktime Player.
    When you rebuild the library what options did you select?

  • Why will Safari not play MP3s embedded in my iWeb pages when Firefox can?

    One would have thought that if iWeb was going to get picky over the scenarios in which it would behave correctly, it would favour Apple-centric enviroments. But this doesn't appear to be the case when building an iWeb site with embedded MP3 files.
    The published site behaves perfectly when viewed in Firefox and yes, even IE's latest incarnation. Files may take a while to download but they play when the download has finished. Safari is a different story. The MP3 files embedded in some pages simply will not play when viewed with Safari.
    This page in particular has never worked in Safari -
    http://www.whisperycat.co.uk/version_5/sounds/Entries/2011/3/23_Promenade.html
    A small blue questionmark appears instead of the 'Play' button.
    Any workarounds or is it just the case that Safari and iWeb are incompatible on this fundamental point???

    Well it looks as though I answered my own question. A Google search revelas that Safari has had over 2 years' history of reported problems with the mp3 format -
    http://www.google.co.uk/search?client=safari&rls=en&q=safari+wont+play+mp3&ie=UT F-8&oe=UTF-8&redir_esc=&ei=nkulT9_wA82g8gOPj8ntBA
    - and the solution is... STOP USING MP3 FILES
    Yes, mp3 format is out, mp4 format is in. SO I'll need to upload MP4 versions of my audio files and then retry.

  • Why does Quicktime not play this mp4 correctly

    I can create an mp4 file (recording) from Belkin's @TV app but that file will not play correctly in Quicktime (or RealPlayer or iMovie, etc.).  While the video playback seems fine, the audio plays a couple of seconds, at "chipmonk" speed, and then there is no sound out.  However, if I move the playhead to any random place in the recording I can then hear another couple of seconds of audio, as before ("chipmonk" speed), and then silence.  The VLC player will, however, play the file correctly. 
    So, seeing that the file itself was not bad, I decided to try Handbrake to re-encode the recording.  And, to my surprise, Handbrake was able to handle the file correctly and produce an mp4 file that Quicktime (and the others) can play.
    I don't know enough about these mp4 files to grasp what is wrong with the original Belkin output.  The Quicktime inspector reports that the Format is
       H.264, 352 x 240
       AAC, 32000 Hz, Stereo (L R)
       FPS: 25.37
    Any ideas?  (Is there additional data I can look at about this file?)
    I'm running the current version of Mavericks and Quicktime 10.3.

    Jon Walker wrote:
    Use a dedicated utility like MediaInfo to screen more information about the file and how each track is encoded.
    Another user in the Belkin forum suggested that I look at the recording's header info, and pointed me to AtomicParsley, which I have now run (using some basic terminal commands). 
    This is what it reports for the initial, Belkin-app produced file:
    Atom ftyp @ 0 of size: 24, ends @ 24
    Atom mdat @ 24 of size: 195643428, ends @ 195643452
    Atom moov @ 195643452 of size: 772515, ends @ 196415967
         Atom mvhd @ 195643460 of size: 108, ends @ 195643568
         Atom iods @ 195643568 of size: 33, ends @ 195643601
         Atom trak @ 195643601 of size: 674653, ends @ 196318254
             Atom tkhd @ 195643609 of size: 92, ends @ 195643701
             Atom mdia @ 195643701 of size: 674553, ends @ 196318254
                 Atom mdhd @ 195643709 of size: 32, ends @ 195643741
                 Atom hdlr @ 195643741 of size: 33, ends @ 195643774
                 Atom minf @ 195643774 of size: 674480, ends @ 196318254
                     Atom vmhd @ 195643782 of size: 20, ends @ 195643802
                     Atom dinf @ 195643802 of size: 36, ends @ 195643838
                         Atom dref @ 195643810 of size: 28, ends @ 195643838
                     Atom stbl @ 195643838 of size: 674416, ends @ 196318254
                         Atom stsd @ 195643846 of size: 140, ends @ 195643986
                             Atom avc1 @ 195643862 of size: 124, ends @ 195643986
                                 Atom avcC @ 195643948 of size: 38, ends @ 195643986
                         Atom stts @ 195643986 of size: 403840, ends @ 196047826
                         Atom stss @ 196047826 of size: 8476, ends @ 196056302
                         Atom stsc @ 196056302 of size: 28, ends @ 196056330
                         Atom stsz @ 196056330 of size: 253724, ends @ 196310054
                         Atom stco @ 196310054 of size: 8200, ends @ 196318254
         Atom trak @ 196318254 of size: 97713, ends @ 196415967
             Atom tkhd @ 196318262 of size: 92, ends @ 196318354
             Atom edts @ 196318354 of size: 48, ends @ 196318402
                 Atom elst @ 196318362 of size: 40, ends @ 196318402
             Atom mdia @ 196318402 of size: 97565, ends @ 196415967
                 Atom mdhd @ 196318410 of size: 32, ends @ 196318442
                 Atom hdlr @ 196318442 of size: 33, ends @ 196318475
                 Atom minf @ 196318475 of size: 97492, ends @ 196415967
                     Atom smhd @ 196318483 of size: 16, ends @ 196318499
                     Atom dinf @ 196318499 of size: 36, ends @ 196318535
                         Atom dref @ 196318507 of size: 28, ends @ 196318535
                     Atom stbl @ 196318535 of size: 97432, ends @ 196415967
                         Atom stsd @ 196318543 of size: 92, ends @ 196318635
                             Atom mp4a @ 196318559 of size: 76, ends @ 196318635
                                 Atom esds @ 196318595 of size: 40, ends @ 196318635
                         Atom stts @ 196318635 of size: 1088, ends @ 196319723
                         Atom stss @ 196319723 of size: 16, ends @ 196319739
                         Atom stsc @ 196319739 of size: 532, ends @ 196320271
                         Atom stsz @ 196320271 of size: 88328, ends @ 196408599
                         Atom stco @ 196408599 of size: 7368, ends @ 196415967
    Total size: 196415967 bytes; 42 atoms total. AtomicParsley version: 0.9.0 (utf8)
    Media data: 195643428 bytes; 772539 bytes all other atoms (0.393% atom overhead).
    Total free atom space: 0 bytes; 0.000% waste.
    Movie duration: 2116.513 seconds (35:16.51) - 739.49* kbp/sec bitrate (*=approximate)
    Low-level details. Total tracks: 2
    Trk  Type  Handler                    Kind  Lang  Bytes
    1    vide  [none listed]              avc1  eng   178711864
         675.58* kbp/s  2116.243 sec  AVC Main Profile,  Level 3.1  352x240  (330 macroblocks)
    2    soun  [none listed]              mp4a  eng   16931556
         64.00* kbp/s  2116.513 sec  MPEG-4 AAC Low Complexity Profile    channels: [2]
    Jon Walker wrote:
    In most cases, users want answers but are unable or unwilling to provide the encoding information to explain most problems, it is usually simpler to ask users to post a sample file for examination on my own computer.
    I have the equivalent for the recording's Handbrake output.  I did a file compare but there were enough differences (and I'm not a technical person) so I could not spot which of the differences mattered.  For example, I thought that the fact that there is "none listed" for the sound handler looked like an obvious clue until I saw that same thing in the Handbrake output.
    Here is the Handbrake data:
    Atom ftyp @ 0 of size: 28, ends @ 28
    Atom free @ 28 of size: 132, ends @ 160
    Atom mdat @ 160 of size: 100944363, ends @ 100944523
    Atom moov @ 100944523 of size: 1606698, ends @ 102551221
         Atom mvhd @ 100944531 of size: 108, ends @ 100944639
         Atom iods @ 100944639 of size: 24, ends @ 100944663
         Atom trak @ 100944663 of size: 1288497, ends @ 102233160
             Atom tkhd @ 100944671 of size: 92, ends @ 100944763
             Atom mdia @ 100944763 of size: 1288361, ends @ 102233124
                 Atom mdhd @ 100944771 of size: 32, ends @ 100944803
                 Atom hdlr @ 100944803 of size: 33, ends @ 100944836
                 Atom minf @ 100944836 of size: 1288288, ends @ 102233124
                     Atom vmhd @ 100944844 of size: 20, ends @ 100944864
                     Atom dinf @ 100944864 of size: 36, ends @ 100944900
                         Atom dref @ 100944872 of size: 28, ends @ 100944900
                     Atom stbl @ 100944900 of size: 1288224, ends @ 102233124
                         Atom stsd @ 100944908 of size: 186, ends @ 100945094
                             Atom avc1 @ 100944924 of size: 170, ends @ 100945094
                                 Atom avcC @ 100945010 of size: 50, ends @ 100945060
                                 Atom colr @ 100945060 of size: 18, ends @ 10094507 ~
                         Atom stts @ 100945094 of size: 403832, ends @ 101348926
                         Atom stsz @ 101348926 of size: 253724, ends @ 101602650
                         Atom stsc @ 101602650 of size: 24436, ends @ 101627086
                         Atom stco @ 101627086 of size: 56712, ends @ 101683798
                         Atom ctts @ 101683798 of size: 484536, ends @ 102168334
                         Atom stss @ 102168334 of size: 1352, ends @ 102169686
                         Atom sdtp @ 102169686 of size: 63438, ends @ 102233124
             Atom edts @ 102233124 of size: 36, ends @ 102233160
                 Atom elst @ 102233132 of size: 28, ends @ 102233160
         Atom trak @ 102233160 of size: 317950, ends @ 102551110
             Atom tkhd @ 102233168 of size: 92, ends @ 102233260
             Atom mdia @ 102233260 of size: 317828, ends @ 102551088
                 Atom mdhd @ 102233268 of size: 32, ends @ 102233300
                 Atom hdlr @ 102233300 of size: 33, ends @ 102233333
                 Atom minf @ 102233333 of size: 317755, ends @ 102551088
                     Atom smhd @ 102233341 of size: 16, ends @ 102233357
                     Atom dinf @ 102233357 of size: 36, ends @ 102233393
                         Atom dref @ 102233365 of size: 28, ends @ 102233393
                     Atom stbl @ 102233393 of size: 317695, ends @ 102551088
                         Atom stsd @ 102233401 of size: 103, ends @ 102233504
                             Atom mp4a @ 102233417 of size: 87, ends @ 102233504
                                 Atom esds @ 102233453 of size: 51, ends @ 102233504
                         Atom stts @ 102233504 of size: 24, ends @ 102233528
                         Atom stsz @ 102233528 of size: 264600, ends @ 102498128
                         Atom stsc @ 102498128 of size: 28, ends @ 102498156
                         Atom stco @ 102498156 of size: 52932, ends @ 102551088
             Atom udta @ 102551088 of size: 22, ends @ 102551110
                 Atom name @ 102551096 of size: 14, ends @ 102551110
         Atom udta @ 102551110 of size: 111, ends @ 102551221
             Atom meta @ 102551118 of size: 103, ends @ 102551221
                 Atom hdlr @ 102551130 of size: 33, ends @ 102551163
                 Atom ilst @ 102551163 of size: 58, ends @ 102551221
                     Atom ©too @ 102551171 of size: 50, ends @ 102551221
                         Atom data @ 102551179 of size: 42, ends @ 102551221
    Atom free @ 102551221 of size: 132, ends @ 102551353
    ~ denotes an unknown atom
    Total size: 102551353 bytes; 54 atoms total. AtomicParsley version: 0.9.0 (utf8)
    Media data: 100944363 bytes; 1606990 bytes all other atoms (1.567% atom overhead).
    Total free atom space: 264 bytes; 0.000% waste.
    Movie duration: 2116.640 seconds (35:16.64) - 381.53* kbp/sec bitrate (*=approximate)
    Low-level details. Total tracks: 2
    Trk  Type  Handler                    Kind  Lang  Bytes
    1    vide  [none listed]              avc1  und   65533744
         247.74* kbp/s  2116.243 sec  AVC Main Profile,  Level 4  352x240  (330 macroblocks)
    2    soun  [none listed]              mp4a  eng   35410611
         133.84 kbp/s  2116.640 sec  MPEG-4 AAC Low Complexity Profile    channels: [2]

  • My new LG exalt does not play my music from the sd micro card. my old phone was a LG wine III. why does it not play from my old lg wine to the new one

    my

        Let's get your music playing, beans3! What happens when you try to play your music from the SD card - Any error messages?  Do the songs show as downloaded to your phone? Please share details so we can help.
    TanishaS1_VZW
    Follow us on Twitter@VZWSupport

  • Why when I click to play a sample of a song does it not play the full sample?  It only plays about 10 seconds of it

    Why when I click to play a sample of a song does it not play the full sample?  It only plays about 10 seconds of it

    Perhaps try resetting your iTunes Store Cache.
    Go "Edit > Preferences". In the Advanced tab, click the "Reset cache" button shown in the following screenshot:
    ... and then click OK.
    Restart your iTunes, and head back to the Store. Are you getting full previews now?

  • Why does apple tv play my photos randomly in screen saver mode when random is not selected

    why does apple tv2 play my photos randomly in screen saver mode when random is not selected?

    Thanks for that.
    Random is not selected in transition or anywhere else. Unless I am missing something in the settings.
    So why is it playing my photos ramdomly in screen saver mode ?

  • Firefox for Android will not play mp3

    Hi! Why does Firefox for Android will not play mp3? For example the tracks on this page do not play http://audiobook-online.com/?page_id=33 . Firefox for windows plays mp3.
    Alexander

    Hello,
    I've just tested and the mp3s on that page work fine for me. When I first visited the site I see a prompt at the top of the screen: "This page contains plugin content. Would you like to enable plugins".
    I clicked Activate and the audio played fine.
    If the pop-up doesn't appear then you can try enabling plugins across all pages. See here:
    [[How do I watch Flash videos with Firefox for Android?|Play Flash Content Without Tapping]]
    But be aware that there are security implications with this option. It is safer to keep flash as tap-to-play. There is more information on this in the article.
    I hope that helps.

  • Why AppleTV is not playing 1280x720 at 30fps?

    Why AppleTV is not playing 1280x720 at 30fps? I tested and is playing 1280x720 at 25 fps, therefore I think is just a software restriction not a hardware capability. Converting from 1080i to 960x540 I'm loosing quality, and if I convert from 29.97 to 24 fps, the transitions are not smooth.

    It's outside AppleTV playback specs which is officially a maximum of 720p 24fps, though many have observed that 25fps works.
    AppleTV does not have very high performance components so it may well be hardware limitation.
    It's a shame it flatly refuses to play - but I guess it's Apple's way pf preventing complaints that 720p video is very stuttery or drops frames.
    Good for us in UK/PAL land where our camcorders will default to 25fps as we can usually get downconverted 25fps 720p to play, but seems odd given Apple is a US company that they did not ensure 720p would play at least at NTSC frame rates.
    Trouble is the device's video is clearly aimed at iTunes Store video playback, and commercial movies are usually 24fps so 720p 24fps is fine for that purpose.
    See specs here:
    http://www.apple.com/appletv/specs.html

  • Why does Spotify stopped playing when i do something else like browse facebook, go see my messages?

    why does Spotify stopped playing whenever i do something else on my phone like browse facebook, or read my phone messages, or open a link to read something? some other music apps like Jango lets you do whatever you want, but it keeps playing ur playlist.. i'm not even gonna mention how pitifully miniscule Spotify's music library is compared to this apps...ooops

    Hi. I feel your pain my friend.  This is so annoying it makes me want to cancel my "pro" subscription. I think it has to do with other audio from a web page (includes Facebook) overriding Spotify's audio. I have looked all over Spotify to see if there is an override the override setting.  I can't find it. Maybe this bumps up this thread so we get some sort of answer.  I wouldn't mind it even if we got it's not possible. At least then we'd know. That's the problem with forum posting - you never know if you're going to get an answer pee what kind of answer it may be.  As the headline says this forum is not sourced from Spotify. hoibie

  • Why does color not have a 1440x1080 Resolution preset?

    1. Why does color not have a 1440x1080 Resolution preset? Im using ProRes HQ in FCP and clips at 1440x1080. But when they come out of Color they are 1920x1080? I notice from color there is no 1440x1080 Res preset so strange?
    2. In addition ive also noticed that I dont have the choice of 'Original Codec' in the render codec settings. Only ProRes, ProRes HQ, Uncompressed 8bit and 10bit. SO i use the higher quality 10bit.
    Message was edited by: StingRay67

    Ok, I class myself as a patient person and not one to fly off the handle. However, Color is testing me to the limits. I cannot work out for the life of me how this application is trying to handle my footage.
    I sending 1440x1080 thats been encoded 1440x1080 50i. This footage is ending up in the Color pref settings or as 1920x1080!! Secondly when I send this back to FCP obviously my Sequence will have changed to match 1920x1080.. thus up scaling the whole project! Then if that weren't enough, taking a look at the data-rates in the clip settings of the Color Sequence they read in excess of 131.5 mb/s My HDD give up immediately! (Is one supposed to render the timeline first once this footage is back from color? - i dont just mean because of the transitions etc)
    Now.. to yet further confuse the issue I then do a Render ALL in FCP and the Color Sequence plays back fine though still with the wrong Resolution of 1920x1080?
    to be frank, i just dont know where to start with this.. it seems 1 step forward 3 steps back each time. I can appreciate Im new to this but I thought I knew enough not to encounter such petty problems as just setting Color up for import/export. Im going to say it... Is this a Color problem or what? I dont think there are many of you using PAL with HDV into ProRes HQ or ProRes so I guess its going to have to be a £200 call to Apple? .. Which I probably wont do..
    Here's hoping.

  • Why does QT 10 play MPEG-2, but QT 7 Pro doesn't?

    Why does QT 10 play MPEG-2, but QT 7 Pro doesn't?

    QuickTime 7 requires an additional component to play MPEG-2 content. This component is separate from and not part of QuickTime Pro.
    (107653)

  • Moc won't play mp3 streams?

    I use MOC (mocp) as my audio player and have for years. I just switched over to Arch and can't get it to play MP3 streams. I have the following installed:
    moc-svn (from the AUR; debug enabled)
    version info:
    moc 2.5.0-alpha4 Build: Mar 13 2011 10:55:01
    Compiled with: OSS ALSA JACK DEBUG internet streams resample
    ffmpeg-git
    lame (normal repo)
    curl (normal repo)
    I can play the same stream using ffplay directly, but it was my thought that moc uses lame to decode MP3 and a combo of curl and lame for MP3 streams? Playing a local MP3 file works fine. However, when I load my playlist and select a stream it just sits at "connecting..." for ever. Debug mode shows no errors on the console. I'm running the same version of moc on my Ubuntu laptop and FreeBSD server, so I know it can play streams.
    Thoughts?

    #I´m using  moc-1:2.5beta1-5 from actual repository with kernel 3.10.12-1-MANJARO and i #can´t play streams like pls or m3u,
    #but it´s cause moc can not unpack m3u or pls, .. to it´s playlist. So i can do:
    [diamond@diamond ~]$ wget http://somafm.com/secretagent.pls
    --2013-09-24 12:06:47--  http://somafm.com/secretagent.pls
    Překládám somafm.com (somafm.com)… 74.217.192.202
    Navazuje se spojení s somafm.com (somafm.com)|74.217.192.202|:80… spojeno.
    HTTP požadavek odeslán, program čeká na odpověď… 200 OK
    Délka: 572 [audio/x-scpls]
    Ukládám do: „secretagent.pls“
    100%[========================================================================================================================================================================================================================================>] 572         --.-K/s   za 0s     
    2013-09-24 12:06:48 (14,0 MB/s) – „secretagent.pls“ uloženo [572/572]
    #then
    [diamond@diamond ~]$ cat secretagent.pls
    [playlist]
    numberofentries=3
    File1=http://mp3.somafm.com:443
    Title1=SomaFM: Secret Agent (#1 128k mp3): The soundtrack for your stylish, mysterious, dangerous life. For Spies and PIs too!
    Length1=-1
    File2=http://mp2.somafm.com:9016
    Title2=SomaFM: Secret Agent (#2 128k mp3): The soundtrack for your stylish, mysterious, dangerous life. For Spies and PIs too!
    Length2=-1
    File3=http://ice.somafm.com/secretagent
    Title3=SomaFM: Secret Agent (Firewall-friendly 128k mp3) The soundtrack for your stylish, mysterious, dangerous life. For Spies and PIs too!
    Length3=-1
    Version=2
    [diamond@diamond ~]$
    #And then i can add stream in to the local playlist for example from line starts File1=.. on the #start of wget processing
    #It´s in my case: http://mp3.somafm.com:443
    #Or do:
    [diamond@diamond ~]$ mocp http://mp3.somafm.com:443
    #And moc sudenly play nicely :)
    Last edited by Synnema (2013-09-24 11:14:11)

  • Why can i not play blu rays on my iMac?

    Why can i not play my blu rays on my imac?

    If you want to download VLC, try this direct site:
    http://www.videolan.org/vlc/download-macosx.html
    The other site throws up a caution and I do trust WOT to keep my Mac safe (here is a screenshot of the warning I got):
    Here is an interesting article:
    http://www.macworld.com/article/2042431/watch-and-rip-blu-ray-movies-on-your-mac .html
    It does mention VLC, but only if you copy it first which, according to the ToU of these forums, we are not allowed to discuss here as it circumvents copyright protection. In any case, you'd still need a BR player.

  • Why does Adobe not support tablets or Kindle Fire

    Why does Adobe not support tablets or Kindle fire?

    You have it backwards.
    Tablets (Kindle, Galaxy, iPad) don't support Flash.
    Chronologically:
    2008 (March) - Apple® releases the first iPhone, using iOS®. Steve Jobs is insistent and adamant that iOS® is NOT compatible with Flash® and NEVER WILL BE. Jobs' reasoning is that playing Flash® content is processor consumptive and it drains batteries, thus shortening the life of them in mobile devices. In six years, that hasn't changed. Not for the iPhone®, iPad® or iPod® Touch™. It never will change and there never will be a Flash Player® for iOS®.
    2008 (September) - Google® introduces Android™ to compete with iOS®, for people who don't want to pay what Apple® is asking for an iPhone®. Android®, unlike its Apple® counterpart IS compatible with Flash®.
    2012 (June) - Android™ (Google®) announces the end of support for Flash® with Android™ 4.3. Going forward NO Android™ devices will be compatible with Flash®, but older versions on older devices can still be loaded with "legacy" builds still available from Adobe®. Android™ (Google®) cites the same reason Apple® did for the decision to end support of Flash®. Adobe® continues to release security patches to Flash Player® for Android™ until September 2013, announcing the "end of life" for Android™ Flash® September 10.

Maybe you are looking for