
Wx::ActiveX::WMPlayer - ActiveX interface for Windows Media Player.

use Wx::ActiveX::WMPlayer ;
my $wm = Wx::ActiveX::WMPlayer->new( $parent , -1 , wxDefaultPosition , wxDefaultSize );
$wm->PropSet("FileName",'C:\movie.avi') ;
$wm->Play ;
EVT_ACTIVEX($this, $wm ,"PlayStateChange", sub{
my ( $this , $evt ) = @_ ;
print "Play Change\n" ;
}) ;

ActiveX control for Windows Media Player. The control comes from Wx::ActiveX, and all methods/events from there exit here too.

This will create and return the Windows Media Player object.

See Wx::ActiveX.

All the events use EVT_ACTIVEX.

<EVENTS>
ReadyStateChange
MouseUp
MouseMove
MouseDown
KeyUp
KeyPress
KeyDown
DblClick
Click
PositionChange
DisplayModeChange
DVDNotify
ScriptCommand
EndOfStream
Buffering
Disconnect
MarkerHit
NewStream
Warning
Error
OpenStateChange
PlayStateChange
</EVENTS>
<PROPS>
ActiveMovie
AllowChangeDisplaySize
AllowScan
AnimationAtStart
AudioStream
AutoRewind
AutoSize
AutoStart
Balance
Bandwidth
BaseURL
BufferingCount
BufferingProgress
BufferingTime
CanPreview
CanScan
CanSeek
CanSeekToMarkers
CaptioningID
ChannelDescription
ChannelName
ChannelURL
ClickToPlay
ClientId
CodecCount
ConnectionSpeed
ContactAddress
ContactEmail
ContactPhone
CreationDate
CurrentMarker
CurrentPosition
CursorType
DefaultFrame
DisplayBackColor
DisplayForeColor
DisplayMode
DisplaySize
Duration
DVD
EnableContextMenu
Enabled
EnableFullScreenControls
EnablePositionControls
EnableTracker
EntryCount
ErrorCode
ErrorCorrection
ErrorDescription
FileName
HasError
HasMultipleItems
ImageSourceHeight
ImageSourceWidth
InvokeURLs
IsBroadcast
IsDurationValid
Language
LostPackets
MarkerCount
Mute
NSPlay
OpenState
PlayCount
PlayState
PreviewMode
Rate
ReadyState
ReceivedPackets
ReceptionQuality
RecoveredPackets
SAMIFileName
SAMILang
SAMIStyle
SelectionEnd
SelectionStart
SendErrorEvents
SendKeyboardEvents
SendMouseClickEvents
SendMouseMoveEvents
SendOpenStateChangeEvents
SendPlayStateChangeEvents
SendWarningEvents
ShowAudioControls
ShowCaptioning
ShowControls
ShowDisplay
ShowGotoBar
ShowPositionControls
ShowStatusBar
ShowTracker
SourceLink
SourceProtocol
StreamCount
TransparentAtStart
VideoBorder3D
VideoBorderColor
VideoBorderWidth
Volume
WindowlessVideo
</PROPS>
<METHODS>
AboutBox()
AddRef()
Cancel()
FastForward()
FastReverse()
GetCodecDescription(CodecNum)
GetCodecInstalled(CodecNum)
GetCodecURL(CodecNum)
GetCurrentEntry()
GetIDsOfNames(riid , rgszNames , cNames , lcid , rgdispid)
GetMarkerName(MarkerNum)
GetMarkerTime(MarkerNum)
GetMediaInfoString(MediaInfoType)
GetMediaParameter(EntryNum , bstrParameterName)
GetMediaParameterName(EntryNum , Index)
GetMoreInfoURL(MoreInfoType)
GetStreamGroup(StreamNum)
GetStreamName(StreamNum)
GetStreamSelected(StreamNum)
GetTypeInfo(itinfo , lcid , pptinfo)
GetTypeInfoCount(pctinfo)
Invoke(dispidMember , riid , lcid , wFlags , pdispparams , pvarResult , pexcepinfo , puArgErr)
IsSoundCardEnabled()
Next()
Open(bstrFileName)
Pause()
Play()
Previous()
QueryInterface(riid , ppvObj)
Release()
SetCurrentEntry(EntryNumber)
ShowDialog(mpDialogIndex)
Stop()
StreamSelect(StreamNum)
</METHODS>

This package only works for Win32, since it use AtiveX.


Thiago S. V. <tsv@terra.com.br>
Thanks to Graciliano M. P. for Wx::ActiveX! ;)

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.