×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    15

    play video problem on device

    Hi all,

    I write a code embed a video like this:

    var obj;
    obj = document.createElement("object");

    obj.setAttribute("type", "video/mpeg");
    obj.setAttribute("width", "200");
    obj.setAttribute("width", "200");
    obj.setAttribute("data", "http://myserver.com/myVideo.3gp");

    var para;
    para = document.createElement("param");
    para.setAttribute("name", "controller");
    para.setAttribute("value", "true");
    para.setAttribute("name", "autoplay");
    para.setAttribute("value", "true");
    para.setAttribute("name", "autostart");
    para.setAttribute("value", "1");

    obj.appendChild(para);

    document.body.appendChild(obj);

    I test it on S60 3rd Edition FP2 SDK. It run OK
    But on device, it has a problem. I can't display image, just have a sound. I don't why? Does anyone know this problem? Please help me.


    Thanks.

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

    Re: play video problem on device

    I'm sypprised that it would work on a emulator already, basically AFAIK the file would be propably played with real player, and it only plays RTSP streams for anythng that is not local video file.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    15

    Re: play video problem on device

    I tested on emulator (S60 3rd Edition FP2 SDK). And it plays very well. Can I play a video file with real player in my app?


    Thanks.

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

    Re: play video problem on device

    you can surely play local files supported by the player, but AFAIK any non-local files played with Real player's browser plug-in should be RTSP streams.

Similar Threads

  1. play video local on device
    By narender_raul in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-11-18, 15:06
  2. Problem when using CVideoPlayerUtility to play a clip of video
    By mobilepig in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2008-05-28, 14:30
  3. Unable To Play a Video File In symbian 9.1 device
    By mailkamlesh in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-14, 18:06
  4. Unable To Play a Video File In symbian 9.1 device
    By mailkamlesh in forum Symbian
    Replies: 0
    Last Post: 2006-08-14, 08:15
  5. Play video in Canvas problem
    By Robert111 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-01-28, 15:59

Posting Permissions

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