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?