×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Audio recorder & player API for harmattan

    Hello,
    How can i record or play audio files on harmattan? i did it on symbian with QMediaPlayer and QMediaRecorder but on harmattan it gave me
    Code:
    Could not create a media muxer element: ""
    Ram

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Audio recorder & player API for harmattan

    It should work.
    All Qt Mobility API supported in Meego Harmattan development.

    Something to configure with Harmattan development.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Re: Audio recorder & player API for harmattan

    the error appeared when excecuting this line
    Code:
    recorder->record();//QMediaRecorder* recorder;

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Re: Audio recorder & player API for harmattan

    below the function
    Code:
    void AudioRec::record()
    {
        fileName = QDate::currentDate().toString() + QTime::currentTime().toString();
        fileName.remove(QChar(' '));
        fileName.remove(QChar(':'));
        audioSettings.setCodec("audio/amr");
        audioSettings.setQuality(QtMultimediaKit::HighQuality);
        recorder->setEncodingSettings(audioSettings);
        recorder->setOutputLocation(QUrl(fileName));
        recorder->record();
    
    }

  5. #5
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Audio recorder & player API for harmattan

    Code is ok ,,according to this example : http://developer.meego.com/api/1.2/q...r.html#details

    regards,
    rahul

  6. #6
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Re: Audio recorder & player API for harmattan

    Hello rahul,
    do i need to update the .pro file with something?

  7. #7
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Re: Audio recorder & player API for harmattan

    i found the problem in this line of codec
    audioSettings.setCodec("audio/amr");
    i used also mp3 but the same problem. when i removed the line it completed the recording but this not right anyway

  8. #8
    Registered User
    Join Date
    Jul 2007
    Posts
    279

    Re: Audio recorder & player API for harmattan

    I solved it simply by replacing the codec statement with adding an extension to file name
    Ram

  9. #9
    Registered User
    Join Date
    Sep 2011
    Location
    Lebanon
    Posts
    59

    Re: Audio recorder & player API for harmattan

    Hello Ram,
    I was facing the same problem, now it works
    Thanks
    Last edited by hassan kassem; 2012-02-06 at 08:22.
    Success is when you realize obstacles you face are challenges to help you become better - and your response equals the challenge.

Similar Threads

  1. Connecting to a audio recorder/player
    By jarbas in forum Audio
    Replies: 1
    Last Post: 2008-04-07, 13:21
  2. APS recorder and player settings
    By raj_rr7 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2007-12-27, 13:59
  3. Replies: 5
    Last Post: 2006-08-02, 09:20
  4. hi audio recorder/player
    By burchasergin in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-01-03, 11:04
  5. audio problem 6600: player and recorder
    By sanknokia in forum Symbian
    Replies: 0
    Last Post: 2004-07-06, 20: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
  •  
×