Difference between revisions of "Player information"

From A-SMIL.org
Jump to: navigation, search
(Related)
m (Corrected <server> as <x-server>)
Line 15: Line 15:
 
<head>
 
<head>
 
   <metadata>
 
   <metadata>
     <server xmlns="http://schemas.adfotain.org/adapi-1.0">
+
     <x-server xmlns="http://schemas.adfotain.org/adapi-1.0">
 
       <subscriptionList>
 
       <subscriptionList>
 
         <subscription>
 
         <subscription>
Line 23: Line 23:
 
         </subscription>
 
         </subscription>
 
       </subscriptionList>
 
       </subscriptionList>
     </server>
+
     </x-server>
 
   </metadata>
 
   </metadata>
 
</head>
 
</head>

Revision as of 04:54, 30 December 2009

On bott up, A-SMIL players can report information about a player, including

  • Player UUID
  • Player name
  • Manufacturer
  • Model
  • Video format
  • Boot-up time

Designating a URL for Reporting

In your SMIL script, you need to add a section to your head section to define where the media player should upload its logs. For player information reporting it should looks like this.

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

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

Event Report Format

The A-SMIL player information report looks like this.

<report xmlns="http://schemas.adfotain.org/adapi-1.0">
   <date>{createDate}</date>
   <version>1.0</version>
   <player id="{playerId}" multi-channel="true">
     <name>{playerName}</name>
     <playerInfo>
       <manufacturer id="company_manufacturer">
         <name>{manufacturer}</name>
         <companyURL>{manufacturerURL}</companyURL>
       </manufacturer>
       <model>{modelDescription}</model>
       <displayDeviceCount>1</displayDeviceCount>
       <displayDevice id="display:0">
         <format>{video_format}</format>
       </displayDevice>
       ...
       <systemStartTime>{system-start-time}</systemStartTime>
    </playerInfo>
  </player>
</report>

Related