tencent cloud

Feedback

Stage 1. Play back a video with superplayer

Last updated: 2023-05-19 14:28:27

    Overview

    This document describes how to upload a video to VOD, process it, and play it back in the player.

    Prerequisites

    Before you start, do the following:

    Activate VOD

    Follow the steps below to activate VOD:

    1. Sign up for a Tencent Cloud account and complete identity verification.
    2. Purchase VOD services. For details, see Billing Overview.
    3. Go to the VOD console.

    At this point, you have activated VOD.

    You need to make sure that hotlink protection for your default distribution domain name is not enabled:

    1. Log in to the VOD console, select Distribution and Playback > Domain Name, and click Set in the entry of the default distribution domain to enter the settings page.
    2. Confirm that the statuses of Referer Hotlink Protection and Key Hotlink Protection are both "Not Enabled".

    Step 1. Upload and process a video

    This step describes how to upload a video, transcode it to adaptive bitstream, and generate a thumbnail and image sprite.

    1. Log in to the VOD console, select Media Assets > Video Management, and click Upload Video.
    2. On the upload page, select Local Upload, click Select Video to upload a local video, and set other fields as follows:
      • Select Auto-processing after upload for Process Video.
      • Select Task Flow as the Processing Type.
      • Select LongVideoPreset for Task Flow Template.
        Note:

        LongVideoPreset is a preset task flow, which uses template 10 for adaptive bitrate streaming, thumbnail generation, and image sprite capturing.


    3. Click Upload to enter the Uploading page and wait for the upload to complete.
    4. Select Media Assets > Video Management and find the newly uploaded video (FileId: 528xxx3757278095). Here, the ID is the FileId of the uploaded video.

    Note:

    Wait until the Video Status changes from Processing to Normal, which indicates that video processing is completed.

    1. Click Manage in the Operation column of the newly uploaded video to enter the management page:
    • Click the Basic Info tab, and you can view the generated thumbnail and output adaptive bitstream (template ID: 10).
    • Click the Screenshot Info tab to view the generated image sprite (template ID: 10).

    Step 2. Preview video playback

    In the previous step, you have uploaded and processed the video. Now, you can use the player for web, iOS, and Android to quickly preview video playback.

    1. Select Media Assets > Video Management, find the video uploaded and processed in step 1, click Manage in the Operation column, and select Player Preview.

    2. Select default for Player Configuration.

      Note:

      Default is a preset player configuration, which is used to output the adaptive bitstream with template 10 and the image sprite with template 10.

    3. In Web Player, click the button in the middle of the player to play back the video on web.

    4. In Mobile Player, click Scan code to download and install "Tencent Cloud Toolkit".

    5. Open Tencent Cloud Toolkit on your mobile phone, select Player, click the top-right corner to scan the QR code, and you can play back the video on your phone.

    Step 3. Use a demo for verification

    You can use the player demos for web, Android, and iOS for verification. For more information, see the demo source code.

    Note:

    In Media Assets > Video Management > Player Preview in the console, you can get the corresponding web player source code for video preview for your reference.

    Summary

    At this point, you have understood how to upload a video to VOD, process it, and play it back in the player.

    You can also:

    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