Overview

Last Updated: Dec 30, 2017

Previous step: Video playback

  • Provisioning

    You can access the media library by using the MTS SDK for Java, PHP, and Python.

    You can also access the media library through HTTP/HTTPS. For details, see API reference.

  • Functions

    Media workflow management: Allows you to add, delete, modify, query, activate, and stop a media workflow.

    Management of media workflow execution instances: Allows you to traverse and query execution instances.

    Media management: Allows you to add, delete, modify, query, and search for a media resource, maintain attributes (the title, tag, cover, and description) of a media set, and set the publishing status of a media set.

    Media category management: Allows you to add, delete, modify, and query a media category.

  • Service scenarios

    • Search for a media set

      Search for a media set that meets search criteria in the media library.

      You can use keywords to search for a media set. With logical disjunction, a media set is displayed if and only if one or more of the title, tag, description, and category are matched. With logical conjunction, a media set is displayed if and only if all specified attributes (title, tag, description, and category) are matched.

      In the search criteria, you can specify the creation time range to limit the search range. You can also set whether the return results are sorted by creation time in ascending or descending order.

      In addition, if many APIs are to be returned, you can have them displayed in pages.

    • Maintain attributes of a media set

      Each media set contains basic attributes of the title, tag, description, and category, which can be set using APIs.

      Basic attributes - Sample code - PHP

    • Manage tags of a media set

      Each tag is specific to a media set. No tag can be set for a media library globally. However, you can use API for searching for media sets to query all media sets with the same tags.

      Manage tags - Sample code - PHP

  • Manage the category of a media set

    The media library provides global category management. You can associate each media set with a category and quickly retrieve a media set.

    Manage categories - Sample code - PHP

  • Query details of a media set

    A media set contains an input file and several output files (videos and screenshots). You can query the detailed input and output information of a returned media set.

    Input information includes the basic attributes (width, height, duration, size, bit rate, and frame rate) and details (container encapsulation, video, audio, subtitle stream, and detailed attributes of the encapsulation and stream) of a video.

    Output information includes the basic attributes (width, height, duration, size, bit rate, and frame rate) and OSS URL of a video, and the type (single-frame and batch) and OSS URL of a screenshot.

    Media set details - Sample code -PHP

Thank you! We've received your feedback.