Application
Web
Session
Var
MonkeyTerm Object Model
Object: MonkeyMediaPlayer
This class uses a newer version of the WMP (Windows Media Player) and will therefore not work on Win95 since they no longer support that OS. Win98 or newer is required.
Sub Play() Plays the currently selected file.
Sub RequestPlay(byval sFile As String, [byval Priority As Single = 50], [byval Volume As Single = 100], [byval LoopCount As Long = 1], [byval Continue As Boolean = False]) The interface for RequestPlay closely matches the requirements for MSPv0.3 (Mud Sound Protocol). sFile: Filename/url of the media file (MID,MP3,WAV,++) Priority: If a sound is requested while another sound is being played, whichever sound has the higher priority wins. In case of a tie the continue parameter determines which sound will win. If continue is true the currently playing sound will win. Volume: a volume in the range from 0 to 100. 100 being loudest. LoopCount: How many times should the media file loop. -1 beign infinitely. Continue: specifies whether the file should simply continue playing if requested again, or if it should restart.
Sub StopPlaying() Stops playback.
Sub ApplyVolume() Apply the new volume change.
|