All Products
Search
Document Center

ApsaraVideo VOD:Media playback

Last Updated:Dec 29, 2023

This topic provides API calling examples for you to obtain playback URLs and playback credentials. The API operations used in this topic are encapsulated in ApsaraVideo server operation SDK for Java.

Usage notes

  • For more information about the request and response parameters of API operations, visit OpenAPI Explorer and find the documentation of the API operation in the left-side navigation pane.

  • To obtain sample code of the SDK, visit OpenAPI Explorer. On the OpenAPI Explorer page, specify the request parameters on the Parameters tab and initiate a call. Then, view and download the sample code in a specific language on the SDK Sample Code tab.image.png

Initialize a client

Before you use the SDK, initialize a client. For more information, see Initialization.

Obtain a playback URL

You can call the GetPlayInfo operation to obtain a playback URL.

For more information, visit OpenAPI Explorer.

Obtain a playback credential

You can call the GetVideoPlayAuth operation to obtain a playback credential.

For more information, visit OpenAPI Explorer.