×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    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 can not, if it is real player doing that, you can not really change its internal behaviour.

  2. #17
    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,

    I tried this code with n95 but it didn't establish a network connection only it shows loading image and do nothing. Is object or embed tag depend on symbian version, which version of symbian support object or embed tag?

  3. #18
    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

    Did you try the link first with the Real player application, i.e. launching it from menu and using its menu options for opening the streaming link ?, it is always good to first check that the link is supported by the device..

    And secondly, what is the link you are trying to play ?

  4. #19
    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

    Thanks for quick reply, link is a rtsp url, content type is 3gpp Yes i tried link with Real Player, it is working. Also my code working with nokia 6710 navigator, but with n95 it shows only loading image and doesn't attempt to establish a network connection. In this link http://discussion.forum.nokia.com/fo...o-on-wap-pages says they can embed video, but it didnt work for me? Is problem with sybian s60 v3.1? because 6710 has sybian s60 v3.2

  5. #20
    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

    Dunno really then, maybe you could check whether the N95 has something different on Real players settigns than the 6710. Also you might see whether it is firmware issues, i.e. you could try updating your N95's firmware to be the latest available.

  6. #21
    Registered User
    Join Date
    May 2011
    Posts
    21

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

    Hi,

    I'm currently developing a game in wrt. I want to add sounds for some actions. I have used the code that you have provided;

    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);
    }
    But this does not work in my case. I'm testing my application in nokia 5800. Do I miss something? By the way, I'm giving the 'type' parameter as 'audio/x-wav' and the 'file' as 'a wav file' to play.

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
  •