Configuring Web Streams
[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
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. |
Related topics