Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor luckyapplehead's Avatar
    Join Date
    Dec 2007
    Posts
    209
    I want to use J2ME to develop a video chat. But I don't know how to record video stream using MMAPI, because I only can find how to record video into a file or snap a picture using MMAPI.
    Could anybody tell me how to record video to byte[] and send it, which make it able to be sent to others and make a live video chat? thanks!

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi luckyapplehead,

    with Java ME you could get the recorded stream as a byte array by using a ByteArrayOutputStream and passing it to RecordControl setRecordStream() method, and then using the ByteArrayOutputStream itself to retrieve the recorded bytes.

    Note however that the recorded bytes will be available only once you have committed the RecordControl itself, so live sending of captured video is actually not possible with Java ME. There are some possible workarounds (like using multiple players and threads to alternatively record and send) but they're generally far from being perfect.

    Pit

  3. #3
    Regular Contributor luckyapplehead's Avatar
    Join Date
    Dec 2007
    Posts
    209
    Quote Originally Posted by jappit View Post
    Hi luckyapplehead,

    with Java ME you could get the recorded stream as a byte array by using a ByteArrayOutputStream and passing it to RecordControl setRecordStream() method, and then using the ByteArrayOutputStream itself to retrieve the recorded bytes.

    Note however that the recorded bytes will be available only once you have committed the RecordControl itself, so live sending of captured video is actually not possible with Java ME. There are some possible workarounds (like using multiple players and threads to alternatively record and send) but they're generally far from being perfect.

    Pit
    jappit,thanks

    So I think I hava to use symbian C++ to develop the live video chat instead... although I don't quite like developing using symbian C++...

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Yes, Symbian C++ would surely be a much more adequate technology for such a project, even if learning path is surely harder

    Pit

  5. #5
    Registered User funkycoolniz's Avatar
    Join Date
    Jun 2009
    Posts
    1
    please i need about for my N95 8GB..i found it difficult to install themes on my phone ..everytime i try to install themes,its say (certificate error contact application suplier) and the themes is (sis file) so am suprise it's not working..please what can i do to fix this?..i will really appreciate if you can help me out on this..

Similar Threads

  1. Software-only video decoder in J2ME
    By nmadrane in forum Mobile Java Media (Graphics & Sounds)
    Replies: 18
    Last Post: 2011-06-26, 19:17
  2. J2ME Chat
    By nagkumar in forum Mobile Java General
    Replies: 1
    Last Post: 2009-02-03, 13: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
  •  
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