Help Center/ Video On Demand/ FAQs/ APIs and SDKs/ Why Is the File Duration Returned 0 When I Call the API for Querying Media Details?
Updated on 2022-10-24 GMT+08:00

Why Is the File Duration Returned 0 When I Call the API for Querying Media Details?

It is possible that:

  • You query file details not long after a media file is uploaded. VOD needs some time to parse this file. You are advised to query file details five minutes later after a file has been uploaded.
  • The source file is corrupt. As a result, the duration fails to be obtained during parsing.
  • A delay occurs on the local network. As a result, the duration cannot be obtained during parsing.