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
RamCode:Could not create a media muxer element: ""
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
RamCode:Could not create a media muxer element: ""
It should work.
All Qt Mobility API supported in Meego Harmattan development.
Something to configure with Harmattan development.
the error appeared when excecuting this line
Code:recorder->record();//QMediaRecorder* recorder;
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(); }
Code is ok ,,according to this example : http://developer.meego.com/api/1.2/q...r.html#details
regards,
rahul
Hello rahul,
do i need to update the .pro file with something?
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
I solved it simply by replacing the codec statement with adding an extension to file name
Ram
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.