tencent cloud

Feedback

MPS Task Callback Backup to COS

Last updated: 2022-01-18 16:19:44

    Backing up callbacks of MPS tasks to COS via SCF is a standard practice. MPS has a template in SCF which you can use to enable the feature. MPS executes video processing tasks; SCF handles callback messages, and COS provides permanent terminal storage.

    Directions

    Step 1. Create a function

    1. Log in to the SCF console, and click Function Service on the left sidebar.
    2. At the top of the Function Service page, select Beijing and click Create to enter the function creating page.
    3. Set the following parameters:
      • Create Method: select Template.
      • Fuzzy search: search CLSSCFCOS.
        Note:

        You can click Learn More in a template to view its details or download the template.

    4. Click Next.
    5. Keep the default configuration and click Complete to complete the creation.

    Step 2. Configure an MPS trigger

    1. In the SCF console, click Function Service on the left sidebar, and click the function created to go to the details page.
    2. Click Trigger Management > Create a Trigger. A trigger creation window pops up. Select MPS trigger for the trigger method.

    The main parameter information is as follows. Use the default values for the remaining configuration items.

    • Event Type: an MPS trigger pushes events at the account level. Two types of trigger events are supported now: Workflow Task (WorkflowTask) and Video Edit Task (EditMediaTask).
      Note:

      • A service role error message will appear when you create an MPS trigger for the first time. Click SCF_QcsRole and MPS_QcsRole to grant the necessary permissions as prompted.
      • An MPS trigger uses events generated at the service level as event sources, regardless of attributes such as region and resources. Each event type can be bound to only one function for each account. If you need multiple functions to handle a task, please see Node.js SDK.
    1. Click Submit to complete the configuration.

    Step 3. Test the function

    1. Start an MPS video processing workflow in the MPS console.
    2. Go to the SCF console to view the execution result.
      Select the Log Query tab on the function details page to view the printed log information.
    3. Log in to the COS console to view the data dumping and processing result.
    Note:

    You can write your own data processing methods as needed.

    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