tencent cloud

Feedback

Player Configuration

Last updated: 2022-09-15 17:40:08

    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.

    Player Configuration Item

    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:
  • Play back the uploaded source video.
  • Play back the output video of transcoding: The transcoding template ID.
  • Play back the output video of adaptive bitrate streaming: The adaptive bitrate streaming template ID.
  • 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.

    Preset Configuration

    VOD provides the following two preset configurations for your convenience:

    Configuration NameConfiguration Item
    The Image Content to Be Played BackThumbnail PreviewThe Definition Naming Rule (Based on the Length of the Substream Short Side)
    defaultThe adaptive bitstream generated with template 10The image sprite generated with template 10
    • 240p: LD.
    • 480p: SD.
    • 720p: HD.
    • 1080p: FHD.
    • 1440p: 2K.
    • 2160p: 4K.
    • Others: xxp (xx indicates the length of the video short side).
    basicDrmPresetThe adaptive bitstream generated with template 12The image sprite generated with template 10
    • If the video content does not require encryption, you can use the 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.
    • If you need to play back encrypted content, you can use the 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.

    Custom Configuration

    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.

    Using Configuration

    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.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support