Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


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

  }) ;



=head1 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 the Wx::ActiveX manpage.


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

the Wx::ActiveX manpage, 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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy