Configuring Web Streams

Web streams are a specialized type of file transfer stream used to deliver the files associated with a Web site in a single stream. Web stream configuration is summarized in the following table.

Setting Description
WM_MEDIA_TYPE.majortype Set to WMMEDIATYPE_FileTransfer.
WM_MEDIA_TYPE.subtype Set to WMMEDIASUBTYPE_WebStream.
WM_MEDIA_TYPE.bFixedSizeSamples Set to False.
WM_MEDIA_TYPE.bTemporalCompression Set to True.
WM_MEDIA_TYPE.lSampleSize Set to 0.
WM_MEDIA_TYPE.formattype Set to WMFORMAT_WebStream.
WM_MEDIA_TYPE.pUnk Set to NULL.
WM_MEDIA_TYPE.cbFormat Set to sizeof(WMT_WEBSTREAM_FORMAT).
WM_MEDIA_TYPE.pbFormat Set to the address of a properly configured WMT_WEBSTREAM_FORMAT structure.
WMT_WEBSTREAM_FORMAT.cbSampleHeaderFixedData Set to sizeof(WMT_WEBSTREAM_SAMPLE_HEADER).
WMT_WEBSTREAM_FORMAT.wVersion Set to 1.
WMT_WEBSTREAM_FORMAT.wreserved Set to 0.

 

Configuration Common to All Streams

Configuring Arbitrary Stream Types

Web Streams