×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    13

    Question playing mp3/wav files from widget?

    Hi all,

    Is there any way to play mp3 (or any other format of sound files) from the widget context?
    as far as my research took me, I could'nt find any exposed API for this (except for the sysinfo beep ).

    I tried to use flash soundmanager (http://www.schillmania.com/projects/soundmanager/), but with no success !

    thanks experts

    Junam.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Singapore
    Posts
    101

    Re: playing mp3/wav files from widget?

    Hi,

    Maybe you can try using a flash app to play the sound file and then embed the flash app in your widget?

    Cheers,
    Valerie / Forum Nokia

  3. #3
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: playing mp3/wav files from widget?

    I think all you need to do is use an embed tag and set src to url of the sound file. Docs indicate that the sound player plug-in should support common sound formats like MP3, aac, midi.

    <embed src="url.mp3"></embed>

    The WRT browser will display a play and stop button console on screen where you place the embed tag.

    I havent tested yet but there may be other parameters you can use though there is no further documentation on the embed tag.

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    13

    Re: playing mp3/wav files from widget?

    Problem solved,

    Here is some sharing regarding this issue:

    1. I tried to use the embed tag as hp3 adviced, but I had no success with making it play the sound automatically, but on click only.
    2. I didn't try the flash app... (maybe will get to it later)
    3. the following worked for me:

    <object type="audio/x-mpeg" data="url.mp3" width="0" height="0" autoplay="true">
    </object>

    the width and height are "0" because I want no controller to appear in the page, tried also 'hidden' and 'controller' params but without success.

    thanks for the answers, they leaded me to the solution.

  5. #5
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: playing mp3/wav files from widget?

    thanks for sharing this solution and glad to hear you got to work as you needed.

  6. #6
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: playing mp3/wav files from widget?

    hi..

    in the WRT widget, I want to embed music player of the phone to stream url.mp3 file. please help me..

    thanks

  7. #7
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: playing mp3/wav files from widget?

    Hello kuddy_abc,

    have you already tried the approached described in this thread?

    Pit

  8. #8
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: playing mp3/wav files from widget?

    Quote Originally Posted by jappit View Post
    Hello kuddy_abc,

    have you already tried the approached described in this thread?

    Pit
    Thank you for your quick reply. Yes I tried the approached described in this thread. But, it is not working.

    <object type="audio/x-mpeg" data="myurl.mp3" width="100%" height="300" autoplay="true">
    </object>

    thanks

  9. #9
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: playing mp3/wav files from widget?

    Hello kuddy_abc,

    are you trying to play a local or remote MP3? On which device/firmware are you testing on?

    Pit

  10. #10
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: playing mp3/wav files from widget?

    Quote Originally Posted by jappit View Post
    Hello kuddy_abc,

    are you trying to play a local or remote MP3? On which device/firmware are you testing on?

    Pit
    thank you for your replay.

    i am trying to play remote mp3 url.(http://www.xxx.com/audio/song1.mp3). i am testing on nokia 5800 XpressMusic.

    i tried follwing,

    -----------

    <object type="audio/x-mpeg" data="http://www.xxx.com/audio/song1.mp3" width="100%" height="300" autoplay="true"></object>

    -----------

    <object type="audio/mpeg" data="http://www.xxx.com/audio/song1.mp3" width="100%" height="300" autoplay="true"></object>

    ------------

    <object type="audio/mpegurl" data="http://www.xxx.com/audio/song1.mp3" width="100%" height="300" autoplay="true"></object>

    -----------

    It connect to internet. then, it look as black colour page. nothing display.

    thanks

  11. #11
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    Re: playing mp3/wav files from widget?

    hi..

    it is working. but, it plays music after finishing download. but i need true streaming. please help me how can i stream audio from widget?

    thanks

Similar Threads

  1. Playing sound files from Midlet
    By ihatejava in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2010-10-21, 12:19
  2. Creating and playing .wav files
    By laukikwatve in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-07-04, 12:58
  3. Garbled audio while playing wav files in 7650
    By rajeevc in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-08-16, 13:45
  4. Playing amr files
    By kunnatur in forum Symbian
    Replies: 4
    Last Post: 2004-07-13, 15:02
  5. Playing WAV files on 7650
    By antmanes in forum Mobile Java General
    Replies: 2
    Last Post: 2003-03-06, 06:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×