Using URL and Server Rollover
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
You can use metafile playlists to provide a means of automatically rolling over to alternate content sources when a stream cannot be accessed or played. You can use this rollover method to specify sources of the same content on different servers or different types of servers. You can, for example, specify a first alternate on a different Windows Media server. If that content fails to play, the client can roll over to a second alternate on a web server. Windows Media Player automatically tries to roll over to different protocols according to its Windows Media property settings before trying the rollover URLs in the playlist.
Set server and protocol rollover by placing multiple REF elements in succession within one ENTRY element. Each REF element specifies an alternate location or protocol for a media file or stream.
Example Code
<!--Server and protocol rollover is set for the file Rollover.wma.-->
<ASX version="3.0">
<TITLE>MyServer Rollover</TITLE>
<ENTRY>
<REF HREF="mms://Server1.proseware.com/Path/Rollover.wma"/>
<REF HREF="mms://Server2.proseware.com/Path/Rollover.wma"/>
<REF HREF="mms://Server3.proseware.com/Path/Rollover.wma"/>
<REF HREF="https://www.proseware.com/Path/Rollover.wma"/>
</ENTRY>
</ASX>
Related topics