Share via


Windows Media Player 11 SDK Redirection 

Windows Media Player SDK banner art

Previous Next

Redirection

The playlist will redirect the browser to Windows Media Player to play the designated media stream or media file. The most basic metafile playlist contains only the Uniform Resource Locator (URL) of a media file.

To create a basic metafile playlist, open your favorite text editor, such as Microsoft Notepad, and type the following example code.

  

Substitute a valid path to your Windows Media file using the syntax in the following table.

Source of content Syntax
Content is a file on a Windows Media server mms://ServerName/Path/FileName.wma
Content is a broadcast multicast that is accessed from a Windows Media station https://WebServerName/Stations/kxyz.nsc
Content is a broadcast unicast that is accessed from a publishing point on a Windows Media server mms://ServerName/PublishingPointAlias
Content is a file on a Web server https://WebServerName/Path/Filename.wma
Content is a file on a local hard disk file://c:\Path\Filename.wma
Content is a file on a network share file://\\ServerName\Path\Filename.wma
Content is a file on a Windows Media server mms://ServerName/Path/FileName.wmv

Save the file you have created with a file name and extension as described in File Name Extensions. Double-click it in Windows Explorer. Windows Media Player should open and start streaming the content. You can save the file to your Web server, along with your Web pages, and link to it with an HREF element, or embed it in a Web page using the Windows Media Player OBJECT tag.

See Also

Previous Next