![]() |
Previous | Next |
This event occurs when the 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. It can have one of the following possible values.
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. |
lParam
Long value specifying additional information about the warning. Different information is specified for different types of warnings, as listed in the column labeled Parameter in the above table.
sDescription
String value specifying the description of the problem encountered.
Remarks
This event occurs only if the SendWarningEvents property is true.
See Also
Previous | Next |