When using the Player SDK to play back a VOD video, you need to specify the image content and thumbnail.
The video image content is of one of the following types:
Thumbnail preview is the output image of an image sprite.
An adaptive bitstream contains multiple substreams that correspond to different definition names during definition switching. When specifying the definition name of each substream displayed in the player, you need to specify the naming rule for the substream definitions.
VOD provides the player configuration. In the configuration, you can specify whether to play back the output video of adaptive bitrate streaming or transcoding or the uploaded source video.
When playing back an output video of adaptive bitrate streaming, you need to specify the adaptive bitrate streaming template ID. When playing back an output video of transcoding, you need to specify the transcoding template ID. When using the thumbnail preview, you need to specify the image sprite template ID.
The player configuration allows you to customize the definition naming rule (such as LD, SD, and HD) of each substream.
Configuration Item | Configuration Method | Feature |
---|---|---|
Image content to be displayed | Select one of the following options through the type field: |
Controls the content of the video image played back by the player. |
Image sprite template for thumbnail preview | Specify image sprite template ID | Controls the thumbnails displayed on the progress bar. |
Substream definition name displayed by the player | Specify the names corresponding to the length of the substream short side | Controls the names of the definitions that can be switched to during playback. |
VOD provides the following two preset configurations for your convenience:
Configuration Name | Configuration Item | ||
---|---|---|---|
The Image Content to Be Played Back | Thumbnail Preview | The Definition Naming Rule (Based on the Length of the Substream Short Side) | |
default | The adaptive bitstream generated with template 10 | The image sprite generated with template 10 |
|
basicDrmPreset | The adaptive bitstream generated with template 12 | The image sprite generated with template 10 |
LongVideoPreset
preset task flow for adaptive bitrate streaming and the default
preset player configuration for playback. For specific samples, see Stage 1. Play back a video with superplayer.SimpleAesEncryptPreset
preset task flow for adaptive bitrate streaming and the basicDrmPreset
preset player configuration for playback. For specific samples, see Stage 4. Play back an encrypted video.In addition to using preset player configurations, you can also customize the configuration in the console or through API.
You can use a custom player configuration for playback as instructed in Stage 1. Play back a video with superplayer.
If you use a configuration rather than the default
preset configuration, you need to use the player signature and specify the configuration name to be used in the pcfg
signature parameter.
You can use the player signature for playback as instructed in Stage 1. Play back a video with superplayer.
Was this page helpful?