语言

Menu
Sites
Language
Native audio recording

I'm was following this tutorial on media recording specifically audio recording: https://developer.tizen.org/ko/development/guides/native-application/media-and-camera/media-recording?langredirect=1#record_audio but then when i run the app on device i get what seems to be permision issues. 

编辑者为: Ntobeko Sikithi 13 4月, 2017

响应

9 回复
Armaan-Ul- Islam

Please add the privilege http://tizen.org/privilege/recorder on your tizen Manifest xml file.

tizenManifest.xml > Privileges Tab > Add recorder

http://tizen.org/privilege/recorder

Allows the application to record video and audio.
This privilege is for a native application.

Tizen is me

Hi, I tried this sample as well and get errors -38 everytime recorder_commit was called and the _state_changed_cb never called. Anybody has success with this ?

Tizen is me

EDIT : _state_changed_cb was called but still get errors -38 everytime recorder_commit was called

Tizen is me

EDIT : error -38 is function not implemented ? 

Armaan-Ul- Islam

This post here on Tizen Developers forum states:

error-38 reflects: TIZEN_ERROR_INVALID_OPERATION.

https://developer.tizen.org/forums/native-application-development/rtsp-streaming?langswitch=en

 

Keeping the post referred above in mind, on Native Media recording Guide it is states that:

 

Dependencies

  • Tizen 2.4 and Higher for Mobile
  • Tizen 2.3.1 and Higher for Wearable

 

Make sure You met the dependencies. If not, Then just right click over your project in project explorer > Configure > Convert to Tizen Projects > Change Version

Cause it seems such error is thrown due to API/version level.

Tizen is me

Yes, already used 2.3.2 so no luck there, do you have successful result with this api ?

Tizen is me

And the problem is only occurs in the emulator, when tried it on device it works flawlessly

 

Thanks Armaan

Armaan-Ul- Islam

Tizen Native Guide of media recording states:

During testing, you can use the emulator to imitate audio or video recording, as long as your computer has a proper input source device.

https://developer.tizen.org/development/guides/native-application/media-and-camera/media-recording

 

So I guess you can still work with emulator if you have 'Microphone device' (Integrated with headphone or laptop)  working to record media.

Armaan-Ul- Islam

You're Welcome.

 

By the way, Tizen Native Guide of media recording states:

During testing, you can use the emulator to imitate audio or video recording, as long as your computer has a proper input source device.

https://developer.tizen.org/development/guides/native-application/media-and-camera/media-recording

 

So I guess you can still work with emulator if you have 'Microphone input device' (Integrated with headphone or laptop)  working to record media.