Discussion Board

Results 1 to 8 of 8

Thread: MMAPI help

  1. #1
    Registered User jahid_hossain's Avatar
    Join Date
    Aug 2010
    Posts
    45
    i tried to make an application which will record the video and while recording video, will play some sound file in the background. the application works fine with Nokia 6300, N72. but when i try the same application in Nokia E66, N73 the sound file isn't played. i want someones help. thank in advance

  2. #2
    Registered User ersomendra's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Posts
    116
    What format of your BG sound file is?
    Does this sound file get played on E66, N73 without camera recording operation?

    Have you really checked the profile of these handsets not to set as silent?
    (Just to be confirmed as Sometimes the silent profile turns out into a joke with multimedia))



    Thanks,
    Somendra

  3. #3
    Registered User jahid_hossain's Avatar
    Join Date
    Aug 2010
    Posts
    45
    my sound files are of .wav format. and they get played on E66, N73 without camera recording operation. and i checked the profile of these handsets and i know that keeping in silent mode creates problem in MMAPI. while testing my mobiles were not on silent mode.

  4. #4
    Registered User ersomendra's Avatar
    Join Date
    Jan 2009
    Location
    Bangalore, India
    Posts
    116
    Hard to say at this point about what exactly is happening with that wav file playing while video recording operation. I believe some sort of exception would be generated in playing the wav file with recording operation. Please try to trace it out. Also, for these handsets, try to perform these two operation in separate threads and try to use another format of sound also like amr, mp3 etc. I can only suggest you the ways as I never faced this problem.





    Thanks,
    Somendra

  5. #5
    Registered User jahid_hossain's Avatar
    Join Date
    Aug 2010
    Posts
    45
    following is the function which i am using

    public void startController()
    {
    //code for waiting a few seconds

    recording = new RecordCamera(); // this is a thread which records video
    recording.start(); // starts recorder thread

    // code for waiting a few seconds
    playSound(); // play sound file
    }

    i start another thread which call this function as follows


    new Thread()
    {
    public void run()
    {
    try
    {
    startController();
    }
    catch (Exception ex) {
    ex.printStackTrace();
    }
    }
    }.start();


    is this ok?

  6. #6
    Registered User jahid_hossain's Avatar
    Join Date
    Aug 2010
    Posts
    45
    following is the function which i am using
    Code:
    public void startController()
        {
           //code for waiting a few seconds
            
            recording = new RecordCamera();    // this is a thread which records video
            recording.start();                  // starts recorder thread
    
           // code for waiting a few seconds
            playSound();  // play sound file
        }
    i start another thread which call this function as follows

    Code:
                    new Thread()
                    {
                        public void run()
                        {
                            try
                            {
                                startController();
                            } 
                            catch (Exception ex) {
                                ex.printStackTrace();
                            }
                        }
                    }.start();

    is this ok?

  7. #7
    Registered User jahid_hossain's Avatar
    Join Date
    Aug 2010
    Posts
    45
    i got some details about the problem. if i start two separate thread, one for video recording and one for audio playing, then the audio is played as early as i stop the recording. during the vidoe recording it is not played. but whenever the video recording is completed, then the audio sound is played. does this information rings any bell? i want help on this topic. someone please help me.

  8. #8
    Registered User dindhankar's Avatar
    Join Date
    Oct 2010
    Posts
    5
    From the description, it seems that on these devices only one Multimedia operation can be performed either video recording or playing audio. I am not sure, but it might be the device issue.

Similar Threads

  1. About MMAPI
    By swethabindu in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-05-04, 20:07
  2. MMApi
    By dakoz in forum Mobile Java General
    Replies: 9
    Last Post: 2007-03-13, 16:54
  3. the best way of using MMAPi
    By melas21 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-09-29, 20:11
  4. MMAPI HELP
    By jinda007 in forum Streaming and Video
    Replies: 2
    Last Post: 2006-02-01, 02:56
  5. partially MMAPI Support in MMAPI Supported device
    By emailmsgbox in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-11-25, 14:32

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