×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    96

    how to play video?

    i used this mothed to play video,but it false, why?

    InputStream is=getClass().getResourceAsStream("/sound/res/video/12.avi");
    player = Manager.createPlayer(is,"video/avi");
    player.realize();
    VideoControl vc = (VideoControl)player.getControl("VideoControl");
    if( vc != null )
    {
    vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,this);
    vc.setDisplaySize(176,144);
    vc.setVisible(true);
    player.start();
    }

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: how to play video?

    What exception do you get?
    Does the video 12.avi exist inside the JAR file in the directory you have defined in thee code?

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    96

    Re: how to play video?

    it can play music when i use this method, but video can not.

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: how to play video?

    Which phone do you have (it might not support video playback, or avi video playback)

    Hartti

  5. #5
    Super Contributor
    Join Date
    May 2003
    Location
    Vancouver, Canada
    Posts
    985

    Re: how to play video?

    Check also this page, http://www.forum.nokia.com/main/reso...es/audiovideo/. There is a table that shows supported video codecs on different devices. Most probably the codec of your video is not supported.
    Antony Pranata
    http://www.antonypranata.com/
    http://www.s60tips.com/

Similar Threads

  1. cant play large video
    By zhouliwx in forum Mobile Java General
    Replies: 3
    Last Post: 2010-07-12, 11:28
  2. 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
  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. Play video on Canvas with N 6600 doesnt work. Please help!!!
    By Robert111 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-02-22, 08:45
  5. Play video without sound
    By shsf in forum Symbian
    Replies: 0
    Last Post: 2004-08-17, 10:17

Posting Permissions

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