tencent cloud

Feedback

Video Dragging

Last updated: 2022-08-01 11:52:45

    Overview

    Video dragging can be enabled to specify the start point of a video. Only MP4, FLV and TS files are supported.

    Use Cases

    Video dragging generally happens in VOD scenarios. When a user drags the video progress bar, a request similar to the one as shown below will be sent to the server:

    http://www.test.com/test.flv?start=10
    

    In this case, data will be returned starting from the 10th byte. VOD files are all cached on nodes, so the nodes can directly respond to such requests once this configuration is enabled.

    Note

    • The origin server must support Range requests, or the origin-pull may fail.
    • You can optimize node cache with query string. A video URL may carry different query strings. When it's cached with the query strings, even for the same requested resource, multiple cache IDs will be generated (due to different query strings), resulting in multiple origin-pull requests for the same resource. For more information, see Query String.
    • Supported file formats: MP4, FLV and TS.
      File Type Meta Information Start Parameter Request Sample
      MP4 The meta information must be included in the file header, instead of at the end of the file. The parameter `start` specifies a time point (in seconds) and indicates milliseconds with decimals. For example, "start = 1.01" means that the start time is 1.01s. Nodes will locate the last keyframe before the time specified by `start` if `start` is not a keyframe. http://www.test.com/demo.mp4?start=10 indicates that the video plays from the 10th second.
      FLV The video on the origin server must have meta information. The parameter `start` specifies a byte. Nodes will automatically locate the last keyframe before the byte specified by `start` if `start` is not a keyframe. http://www.test.com/demo.flv?start=10 indicates that the video plays from the 10th byte.
      TS No special requirements The `start` parameter specifies a start byte. Nodes will automatically locate the byte at the beginning. http://www.test.com/demo.ts?start=10 indicates that the video plays from the 10th byte.

    How It Works

    1. Log in to the EdgeOne console. Click Rule Engine on the left sidebar.
    2. On the rule engine page, select the target site and click to configure video dragging rules as needed.
    3. On the rule engine page, select the match type Host, the operation Video dragging and configure other parameters as needed. Click Save and publish or Save only.
      Note:

      Supported match types: "Host".

    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