Windows Media Player SDK banner art
PreviousNext

Complete Code for Simple Skin

Here is the complete code for the first sample skin:

<THEME>
    <VIEW
        clippingColor = "#CCCC00"
        backgroundImage = "background.bmp"
        titleBar = "false">
         
        <BUTTONGROUP
            mappingImage = "map.bmp"
            hoverImage = "hover.bmp"> 
                
        <BUTTONELEMENT
            mappingColor = "#00FF00"
            upToolTip = "Play"
            onClick="JScript: player.URL='file:laure.wma';" />
                          
        <BUTTONELEMENT
            mappingColor = "#FF0000"
            upToolTip = "Close"
            onClick = "JScript: view.close(); " />
                
        </BUTTONGROUP>
    </VIEW>
</THEME>

Now you have all the pieces put together. Using PKZip or another program that compresses files into the zip format, zip up your skin definition file, bitmaps, and any media files you want to include, into one file. Rename the zipped file with the extension wmz. Then double-clicking your zipped skin will start it playing.

You can see a similar working simple skin in the samples section of the SDK.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.