Windows Media Player SDK banner art
PreviousNext

Logging Stream Data

Logged information can be acquired and used to determine viewer behavior, for example, how often a stream is viewed, or if a specific user viewed a stream and for how long at what quality.

The LOGURL element enables a client metafile playlist to post log statistics to the origin server and any other valid Web location specified. This element instructs Windows Media Player to submit log data to all of the specified URLs in scope, in addition to the origin server.

The Windows Media Format SDK supports the LOGURL element through the IWMSReaderNetworkConfig interface and the following methods:

HRESULT AddLoggingUrl(LPCWSTR pwszUrl);
HRESULT GetLoggingUrl(DWORD dwIndex, LPCWSTR pwszUrl, DWORD *pcchUrl);
HRESULT GetLoggingUrlCount(DWORD *pdwUrlCount);
HRESULT ResetLoggingUrlList();

Example Code

<ASX version="3.0">
  <LOGURL href="http://foo.com/log.asp?soemarg=someval" />
  <ENTRY>
    <REF href="mms://ucast.foo1.com/media1.wma" />
    <LOGURL href="http://foobar.com/cgi-bin/logging.pl?somearg=someval" />
    <LOGURL href="http://bar.com/wmlogging.dll?somearg=someval" />
    <REF href=rtsp://ucast.blah.com/media1.wma" />
  </ENTRY>
  <ENTRY>
    <REF href="mms://ucast.blah1.com/media2.wma" />
  </ENTRY>
</ASX>

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.