Arbitrary 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.]

In addition to audio and video streams and image streams, an ASF file can accommodate streams containing a variety of data. The objects of the Windows Media Format SDK provide support for script streams, file transfer streams, Web streams, and arbitrary data streams. All of these stream types are arbitrary, meaning that no data validation is performed by the reading object. When you include streams of these types in your files, be sure that the reading application performs validation or data checking to ensure that your content has not been corrupted or intentionally mangled by a malicious third party.

Although the objects of this SDK do not verify or validate data in arbitrary streams, several types of arbitrary streams are natively supported. The following table lists the predefined arbitrary stream types. Script streams are also supported, but are discussed separately in the Script Commands section. For more information about creating custom types, see Custom Arbitrary Data Streams.

Arbitrary type Description
Text Streams Contain text strings.
File Streams Contain one or more data files.
Web Streams Contain data files equivalent to the cached version of Web pages.

 

ASF File Features

Audio and Video Streams

Configuring Arbitrary Stream Types