Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    Hi folks,
    i'm trying to record a video. But, i don't know why, either only the sound is been recorded or the way i am redering the recorded video is wrong. Bellow follows the codes:

    The first code is related to recording video.
    Code:
    RecordControl recordControl = (RecordControl) 
    player.getControl("RecordControl")
    ByteArrayOutputStream outputVideo = new ByteArrayOutputStream();
    recordControl.setRecordStream(this.outputVideo);
    recordControl.startRecord();
    this.canvasCamera.setTitle("Recording...");
    The bellow code stops recording video.
    Code:
    public void commandAction(Command cmd, Displayable displayable) {
    if(cmd == this.cmdStopRecording) {
     try {
       recordControl.stopRecord();
       recordControl.commit();
     } catch (IOException e) {
       e.printStackTrace();
     }
    }
    The bellow code belongs to a Canvas class which implements Runnable

    Code:
    InputStream in = new ByteArrayInputStream(this.outputVideo);
    Player player = Manager.createPlayer(in, "video/mpeg");
    player.realize();
    VideoControl videoControl = (VideoControl) player.getControl("VideoControl");
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    videoControl.setDisplayLocation(0, 0);
    player.start();
    So, my approach records a video. However, when i try to rendering it, i just can hear the sound, and the video is not been showing!

    Thanks!
    Last edited by thiagobrunoms; 2008-01-29 at 13:20.

  2. #2
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    Hello thiagobrunoms,

    which device are you using for testing your code?

    Regards,
    r2j7

  3. #3
    Regular Contributor thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    Hi r2j7,
    it's N80 Nokia device. Any suggestion?!
    Thanks for replaying!!!!

    Regards,
    Thiago Bruno

Similar Threads

  1. MMF Video Controller
    By shadow-2005 in forum Symbian Media (Closed)
    Replies: 19
    Last Post: 2007-02-14, 05:34
  2. nokia 5500 to control your PC games
    By shpe11 in forum Symbian C++
    Replies: 14
    Last Post: 2007-01-29, 15:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved