The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Error GetDuration is XA_TIME_UNKNOWN!!!!

I used the code native-media in sample of andorid NDK, and i add function to get the current and duration time. Current time is OK, but duration time is always XA_TIME_UNKNOW, i tested many file video, and result is same.

Re: Error GetDuration is XA_TIME_UNKNOWN!!!!

Re: Error GetDuration is XA_TIME_UNKNOWN!!!!

This may be an implementation specific error. Are you reading the file from a local file system or from a streaming source. If the source is streaming, then there may be no way for the implementation to know the duration and therefore it returns XA_TIME_UNKNOWN. If you are reading from a local file system, GetDuration() should return the actual duration of the content.