Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    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
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    It should work.
    All Qt Mobility API supported in Meego Harmattan development.

    Something to configure with Harmattan development.

  3. #3
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    the error appeared when excecuting this line
    Code:
    recorder->record();//QMediaRecorder* recorder;

  4. #4
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    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
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    Code is ok ,,according to this example : http://developer.meego.com/api/1.2/q...r.html#details

    regards,
    rahul

  6. #6
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    Hello rahul,
    do i need to update the .pro file with something?

  7. #7
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    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 ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    I solved it simply by replacing the codec statement with adding an extension to file name
    Ram

  9. #9
    Registered User hassan kassem's Avatar
    Join Date
    Sep 2011
    Location
    Lebanon
    Posts
    59
    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. Does anyone has the Video Recorder/Player example
    By chl6927 in forum Symbian C++
    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 C++
    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
  •  
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