Task Execution Report

From A-SMIL.org
Jump to: navigation, search

A-SMIL reports its task execution status

Designating a URL to the Task Execution Report Handler

In your SMIL script, you need to add a section to your head section to define where the media player should PUT the task execution report file. A typical definition looks like this.

<head>
  <metadata>
    <x-server xmlns="http://schemas.adfotain.org/adapi-1.0">
      <subscriptionList>
        <subscription>
          <type>TaskExecutionReport</type>
          <action>http://server/filename</action>
          <method>put</method>
        </subscription>
      </subscriptionList>
    </x-server>
  </metadata>
</head>

Here "http://server/filename" is the path to the WebDAV-enabled direction on your log server.

Task Execution Report File Format

A log file uploaded to the server looks like this.

<report xmlns=""http://schemas.adfotain.org/adapi-1.0"">
  <date>2009-07-14T10:59:13Z</date>
  <version>1.0</version>
  <player id=""f1835d9f-be8f-4054-9e6c-000bab253b46"">
    <taskState>
      <task id="foo">
        <lastUpdateTime>{iso-local-datetime}</lastUpdateTime>
        <state>pending|aborted|completed</state>
      </task>
    </taskState>
  </player>
</report>"

Related