Languages

Menu
Sites
Language
I wonder if there is any difference between Native App and Web App in how they process file path.

Hello, I am working on developing a hybrid application.

My app consists of Native App(Service App) and Web App that communicate with each other using messagePort.

Currently, my Web App transmits the path of video file (ex>file:///opt/usr/media/Videos/video_sample.mp4) to the Native App side using the message port.

Using this path value from the Web App, the Native App (Service App) sends a request to "metadata_extractor_set_path(g_metadata_h,filePath));"

(Here, "metadata_extractor_create" has already been executed, and 'filePath' is the path value of the video file from Web App. Here, 'filePath' is the raw data from the message port, which is char*.)

After this, using "metadata_extractor_get_metadata(g_metadata_h,METADATA_DURATION,&value));", I have made my Native App acquire the total running time of the video. 

However, here I keep receiving this error message, known as "-17 (file does not exist)".

In my opinion, the reason for this error is that there is a difference between Native App and Web App regarding how they process and recognize file path values. Moreover, even though I used "/opt/usr/media/Videos/video_sample.mp4" as the value for the path of the video file, I still receive the same error, "-17 (file does not exist)".

 

I have not been able to solve this problem for days, and this is really causing a serious problem to my development process.

 

Please, can anyone familiar with metadata extraction in Web App and Native App help me?

 

=============================================================================================================

P.S. Ultimately, I am planning to extract audio channel and its buffer from the video file. Does "get_metadata" from metadata extractor of Tizen provide the number of channels of the file as its return value? or Does it provide the audio buffer as its return value?

If it returns the number of channels as its return value, is there any way that I can acquire the seperate audio buffer from each channel?

 

 

Edited by: 김동완 Kim on 31 Jul, 2015
View Selected Answer

Responses

5 Replies
Jeongsu Kim

media storage path starts with "/opt/usr/media", not "/usr/media".

김동완 Kim

Sorry.

It was a wrong text on the question.

filePath :" /opt/usr/media", not "/usr/media:

 

Mark as answer
Vikram

f.y.i

remember to add the privilege <privilege>http://tizen.org/privilege/mediastorage</privilege>.

김동완 Kim

thank you. sir

Native App did not contain privilege.(http://tizen.org/privilege/mediastorage)

Alex Dem

Hi,
really no such folder by default on filesystem: /usr/media (only /opt/usr/media as mention above).
afaik on Z1 you should not have permissions to create such folder even.
Alexey.