Contents Index Topic Contents | |
Previous Topic: ScriptCommand Next Topic: Objects |
Warning Event
Occurs when the Microsoft® Windows Media™ Player control encounters a possible problem.
Syntax
JScript <SCRIPT FOR="MediaPlayer" EVENT="Warning(lType, lParam, sDescription)" LANGUAGE="JScript"> //insert script commands// </SCRIPT>VBScript <SCRIPT LANGUAGE="VBScript"> Sub MediaPlayer_Warning(lType, lParam, sDescription) //insert script commands// End Sub </SCRIPT>Parameters
lType Long value specifying the type of problem encountered. lParam Long value specifying additional information about the warning. sDescription String value specifying the description of the problem encountered. Remarks
The sType parameter can be one of the following values:The lParam parameter specifies different information for different types of warnings, as listed in the column labeled Parameter.
Value Visual Basic Constant Description Parameter 0 nsNoAudioDevice The audio playback device is already in use. Always zero. 1 nsUnknownStreamFormat An unknown stream format was received. The stream number of the invalid stream. 2 nsPlaylistItemFailure A file specified in the playlist cannot be played. The number of the clip in the playlist that failed to play. This event occurs only if the value of the SendWarningEvents property is true.
See Also
Monitoring Stream Status and Network Reception, Error Handling
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.