Share via


Windows Media Player 11 SDK An Example Radio Station Playlist 

Windows Media Player SDK banner art

Previous Next

An Example Radio Station Playlist

The following example code illustrates how to create a playlist to scan three rock radio stations. The fictitious company Adventure Works Radio brand is on the playlist and on all of the individual streams within the playlist. When you write your code, change all URLs and file names to valid file names that are accessible to your Windows Media Player.

A playlist is created for each of the stations. A fourth playlist scans through the first three. The playlists are created to reference dynamically generated advertisements and have Adventure Works Radio branding.

One of the playlists representing a radio station might look like this.

  

The playlist can then be constructed of references to the individual playlists.

Example Code

  

This example would play an ad followed by 30 seconds of each of the three stations referenced, one after the other. This cycle will repeat indefinitely because the COUNT attribute of the REPEAT element is not defined.

The example companies, organizations, products, people and events depicted herein are fictitious. No association with any real company, organization, product, person or event is intended or should be inferred.

See Also

Previous Next