tencent cloud

masukan

Extracting Digital Watermark

Terakhir diperbarui:2022-08-09 14:33:53

    Feature Description

    CI supports user-defined callback URLs. After a job is completed, the system sends an HTTP POST request with the body containing notification content to a user-defined callback URL. You can use the configured callback URL to learn about the processing progress and status of the job so that you can perform other operations as needed.

    Callback Content

    After the job is completed, the system sends the callback content to the configured callback URL. The response body is returned as application/xml data. The following contains all the nodes:

    <Response>
      <EventName>TaskFinish</EventName>
      <JobsDetail>
          <Code>Success</Code>
          <CreationTime>2022-06-30T18:42:20+0800</CreationTime>
          <EndTime>2022-06-30T18:42:54+0800</EndTime>
          <Input>
              <BucketId>test-123456789</BucketId>
              <Object>output/digital.mp4</Object>
              <Region>ap-chongqing</Region>
          </Input>
          <JobId>j515a494af86111ecb8546d80f2baf56f</JobId>
          <Message>done</Message>
          <Operation>
              <ExtractDigitalWatermark>
                  <Message>123456789ab</Message>
                  <Type>Text</Type>
                  <Version>V1</Version>
              </ExtractDigitalWatermark>
              <UserData>This is my ExtractDigitalWatermark job.</UserData>
          </Operation>
          <QueueId>p2242ab62c7c94486915508540933a2c6</QueueId>
          <StartTime>2022-06-30T18:42:21+0800</StartTime>
          <State>Success</State>
          <Tag>ExtractDigitalWatermark</Tag>
      </JobsDetail>
    </Response>
    

    The nodes are as described below:

    Node Name (Keyword) Parent Node Description Type
    Response None Response container Container

    Response has the following sub-nodes:

    Node Name (Keyword) Parent Node Description Type
    EventName Response Fixed value: TaskFinish. String
    JobsDetail Response Job details Container

    JobsDetail has the following sub-nodes (same as the Response.JobsDetail in the digital watermark job submitting API):

    If the job is triggered by a workflow, Response.JobsDetail.Input will also contain a CosHeaders node of the container array type.

    CosHeaders has the following sub-nodes:

    Node Name (Keyword) Parent Node Description Type
    Key Response.JobsDetail.Input.CosHeaders Name of the custom header String
    Value Response.JobsDetail.Input.CosHeaders Value of the custom header String

    If the job is triggered by a workflow, Response.JobsDetail will also contain a Workflow node of the container type.

    Workflow has the following sub-nodes:

    Node Name (Keyword) Parent Node Description Type
    RunId Response.Workflow Workflow instance ID String
    WorkflowId Response.Workflow Workflow ID String
    WorkflowName Response.Workflow Workflow name String
    Name Response.Workflow Workflow node name String

    Samples

    Sample 1: Job callback triggered by a job API

    <Response>
      <EventName>TaskFinish</EventName>
      <JobsDetail>
          <Code>Success</Code>
          <CreationTime>2022-06-30T18:42:20+0800</CreationTime>
          <EndTime>2022-06-30T18:42:54+0800</EndTime>
          <Input>
              <BucketId>test-123456789</BucketId>
              <Object>output/digital.mp4</Object>
              <Region>ap-chongqing</Region>
          </Input>
          <JobId>j515a494af86111ecb8546d80f2baf56f</JobId>
          <Message>done</Message>
          <Operation>
              <ExtractDigitalWatermark>
                  <Message>123456789ab</Message>
                  <Type>Text</Type>
                  <Version>V1</Version>
              </ExtractDigitalWatermark>
              <UserData>This is my ExtractDigitalWatermark job.</UserData>
          </Operation>
          <QueueId>p2242ab62c7c94486915508540933a2c6</QueueId>
          <StartTime>2022-06-30T18:42:21+0800</StartTime>
          <State>Success</State>
          <Tag>ExtractDigitalWatermark</Tag>
      </JobsDetail>
    </Response>
    

    Sample 2: Job callback in JSON format triggered by a job API

    {
      "EventName": "TaskFinish",
      "JobsDetail": {
          "Code": "Success",
          "CreationTime": "2022-06-30T18:42:20+0800",
          "EndTime": "2022-06-30T18:42:54+0800",
          "Input": {
              "BucketId": "test-123456789",
              "Object": "output/digital.mp4",
              "Region": "ap-chongqing"
          },
          "JobId": "j515a494af86111ecb8546d80f2baf56f",
          "Message": "done",
          "Operation": {
              "ExtractDigitalWatermark": {
                  "Message": "123456789ab",
                  "Type": "Text",
                  "Version": "V1"
              },
              "UserData": "This is my ExtractDigitalWatermark job."
          },
          "QueueId": "p2242ab62c7c94486915508540933a2c6",
          "StartTime": "2022-06-30T18:42:21+0800",
          "State": "Success",
          "Tag": "ExtractDigitalWatermark"
      }
    }
    
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24