Share via


Windows Media Player 11 SDK Initializing the PageĀ 

Windows Media Player SDK banner art

Previous Next

Initializing the Page

When the Web page loads, the Init function runs. This code first retrieves any data stored in a previous session. For details, see Maintaining Session Information. It then creates the DownloadManager object and stores it in the global variable named g_oManager.

g_oManager = external.DownloadManager;

Next, the function connects the OnColorChange event to the function named OnAppColor and then calls the function directly to initialize the background color. See Matching the Windows Media Player Colors.

Finally, the function starts a timer with a one-second interval and initializes the list boxes that display the pending download collections and download items. This is important because there may have been sessions in progress the last time the online store closed and this information needs to be displayed again.

See Also

Previous Next