The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

  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" ;
  }) ;

DESCRIPTION

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

new ( PARENT , ID , POS , SIZE )

This will create and return the Windows Media Player object.

METHODS

See Wx::ActiveX.

EVENTS

All the events use EVT_ACTIVEX.

ActivexInfos

  <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>

NOTE

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

SEE ALSO

Wx::ActiveX, Wx.

AUTHOR

Thiago S. V. <tsv@terra.com.br>

Thanks to Graciliano M. P. for Wx::ActiveX! ;)

COPYRIGHT

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