locked
WMP Can't Play MP3/WAV over HTTP RRS feed

  • Question

  • User1423192175 posted
    Hello again, Can anyone tell me why I can't play MP3 or WAV files with the Windows Mobile 5 media player control when the filename is a URL? Even with the Media Player application on Windows Mobile 5 it doesn't work. If the files I want to play are stored on the device, no problem. But if I enter a URL it won't work. Here is some code that results in a unsupported file type error. There's a lot of code here, but the main point is that setting the player URL property to an http:// address doesn't work. Is this really a limitation of Windows Mobile? Is there any way to play a audio file which is on my web server? <HTML> <HEAD> </HEAD> <BODY> <OBJECT ID=wmpocx WIDTH=200 HEIGHT=150 CLASSID="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" TYPE="application/x-oleobject" VIEWASTEXT> <PARAM name="uimode" value="none"> </OBJECT>
    <script for="wmpocx" event="PlayStateChange(NewState)" language="JScript">ClipPlayState(NewState); </script> <script for="wmpocx" event="Error()" language="JScript">StopPlayer(); </script>

    Video
    Play state sequence
    <input type="text" id="PlayStateSequence" width=30> <script language="JScript"> <!-- var CurrentPlayImage = null; var bVideo = null; var bWasBuffering = false; function StopPlayer() { wmpocx.controls.stop(); wmpocx.close(); if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_play.gif"; } bWasBufferring = false; } function ClipPlayState(NewState) { PlayStateSequence.value = PlayStateSequence.value + NewState + " "; switch(NewState) { case 1: // stopped if (bWasBuffering) { bWasBufferring = false; if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_play.gif"; } } break; case 6: // buffering bWasBufferring = true; if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_load.gif"; } break; case 9: // transitioning case 11: // reconnecting bWasBufferring = false; break; case 3: // playing if (bWasBufferring) { if (CurrentPlayImage != null) { CurrentPlayImage.src = "bt_stop.gif"; } if (bVideo) { wmpocx.fullScreen = true; } } break; default: } } function PlayClip(url) { if (wmpocx.playState == 3) { return; } if (wmpocx.playState == 3) { StopPlayer(); } else { PlayStateSequence.value = ""; wmpocx.URL = url; } } --> </script> </BODY> </HTML>

    Friday, January 4, 2008 8:18 AM

Answers

  • User-2060689755 posted

    Hi zodiac7,

    As far as I know, it is a limitation of windows mobiel operating system.

     

    Best regards,
    Guang-Ming Bian - MSFT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 10, 2008 3:02 AM