Export (0) Print
Expand All

WMT_WEBSTREAM_SAMPLE_HEADER structure

The WMT_WEBSTREAM_SAMPLE_HEADER structure is used as a variable-sized header for each Web stream sample.

Syntax


typedef struct _WMT_WEBSTREAM_SAMPLE_HEADER {
  WORD  cbLength;
  WORD  wPart;
  WORD  cTotalParts;
  WORD  wSampleType;
  WCHAR wszURL[1];
} WMT_WEBSTREAM_SAMPLE_HEADER;

Members

cbLength

WORD containing the size of wszURL in wide characters.

wPart

WORD containing the zero-based part number to which the sample applies. When the last part is received, wPart equals cTotalParts– 1.

cTotalParts

WORD containing the total number of parts in the Web stream.

wSampleType

WORD containing the type of Web stream, either WEBSTREAM_SAMPLE_TYPE_FILE (0x1) or WEBSTREAM_SAMPLE_TYPE_RENDER (0x2). See Remarks.

wszURL

Wide-character null-terminated string specifying the local URL.

Remarks

In a Web stream, each sample begins with this structure. The application is responsible for determining the size of the structure for each sample delivered. The size depends on the length of the wszURL member, as reported in the cbLength member.

If wSampleType is WEBSTREAM_SAMPLE_TYPE_FILE, the sample contains data immediately following the header that should be cached for later rendering. If the type is WEBSTREAM_SAMPLE_TYPE_RENDER, the sample contains no data. The application should cause the file named in the wszURL member to be immediately rendered on the display.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Version

Windows Media Format 9 Series SDK, or later versions of the SDK

Header

Wmsdkidl.h (include Wmsdk.h)

See also

Structures

 

 

Community Additions

ADD
Show:
© 2014 Microsoft