×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    188

    embed music player of the phone to WRT Widget stream remote mp3 file and play local m

    Hi..

    I am new to WRT development. I have to add music player of the phone in the WRT widget

    1) To stream remote mp3 file url. (Ex http://www.myserver.com/media/song1.mp3)
    2) To play local mp3 file (C:/data/others/song1.mp3)

    please help me.


    thanks

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    nobody answer to my question. please help me. it is urgent

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    no reply yet. anybody help me..

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    please anybosy help me

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    you could try embedding real player, I'm almost sure you cna play local file with it, but the streaming link should be RTSP link, not http.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    3

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    I too wanna know how to embed the music player or real player for streaming. However if you provide the link on the WRT widget, I guess the required app start playing the stream.

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    you could try something like this for example:
    Code:
     function objectPlay(url,type) {
            
    	var playerDiv = document.getElementById('player');
      
        if (playerDiv != null && playerDiv.childNodes != null) {
            for (var i = 0; i < playerDiv.childNodes.length; i++) {
                playerDiv.removeChild(playerDiv.firstChild);
            }
        }
        // Create a new one
        var previewPlayer = document.createElement('object');
        previewPlayer.id = 'audioplayer';
        previewPlayer.setAttribute('volume', '10');
        previewPlayer.setAttribute('type', type);
        previewPlayer.setAttribute('autoplay', 'true');
        previewPlayer.setAttribute('data', url);
    	previewPlayer.setAttribute('src', url);
        playerDiv.appendChild(previewPlayer);
    }
    or like this:
    Code:
     function EmbedPlay(url,type) {
            
    	var playerDiv = document.getElementById('player');
      
        if (playerDiv != null && playerDiv.childNodes != null) {
            for (var i = 0; i < playerDiv.childNodes.length; i++) {
                playerDiv.removeChild(playerDiv.firstChild);
            }
        }
        // Create a new one
        var previewPlayer = document.createElement('embed');
        previewPlayer.id = 'audioplayer';
        previewPlayer.setAttribute('volume', '10');
        previewPlayer.setAttribute('type', type);
        previewPlayer.setAttribute('autoplay', 'true');
        previewPlayer.setAttribute('data', url);
    	previewPlayer.setAttribute('src', url);
        playerDiv.appendChild(previewPlayer);
    }

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    hi..

    thanks for your reply

    it plays music after finishing download when i use http. but i need true streaming using http. any solution for this?

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    AFAIK there is no ways on embedding any music player to a WRT widget that would play HTTP streams.

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    I dont think there is good option for a embedding music player in wrt. 5800 phone will play mp3 while progressively loading over HTTP if you use openURL to play the sound in the phone's music player. This is not embedded sound though, instead you are launching the music player to play the sound.

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    hi..

    can u give any solution for this?

    is it possible to stream remote mp3 file url. (Ex http://www.myserver.com/media/song1.mp3) using flash lite 3.0? then i can design a player using flash lite then, embed it to my widget.

    thanks

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    you could always try the flash solution, flash can progressively load/play the mp3 over http.

    the problem may be that Flash does not have enough memory to play the sound. Flash Lite has had poor memory management for sound and Flash Lite player in web browser has less memory allocated than Flash standalone.

    Let us know how well this works.

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    hi hp3,

    r u sure that flash lite 3.0 support audio streaming?

    http://livedocs.adobe.com/flashlite/...18.html#136115

    thanks

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

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    no, you are right that 3.0 did not support the progressive load. I think that 3.1 and later does support progressive load. 3.0 should support rtmp stream, but that is probably not what you need.

  15. #15
    Registered User
    Join Date
    Nov 2008
    Posts
    7

    Re: embed music player of the phone to WRT Widget stream remote mp3 file and play loc

    Hi,

    When we embed a player like your code, is it a real player instance or etc.? and i tried code streamed video successfully but how can i change default loading image of player?

Similar Threads

  1. Implementation of Digital Rights Management (DRM) on Mobile Music Player for Java:
    By atiqkamran in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2011-02-26, 08:39
  2. how to play mp3 file and play long wav file
    By changsshuai in forum Symbian
    Replies: 6
    Last Post: 2008-09-02, 09:50
  3. OMA DRM media transfer using PC to Phone using USB
    By venky123 in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2008-08-13, 03:02
  4. cannot able to play a video file.
    By shalini.mishra in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-11-13, 16:54

Posting Permissions

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