Foxit PDF SDK
|
Public Types | |
enum | JSMediaPlayerState { e_JSMediaPlayerStateOpen = 0, e_JSMediaPlayerStateClose = 1, e_JSMediaPlayerStatePlaying = 2, e_JSMediaPlayerStateStop = 3, e_JSMediaPlayerStateSuspend = 4 } |
Enumeration for media player state. More... | |
Public Member Functions | |
virtual void | Close ()=0 |
A callback function to close the media player. More... | |
virtual MediaSettings | GetPlayerSettings ()=0 |
A callback function to get the media player settings. More... | |
virtual JSMediaPlayerState | GetState ()=0 |
A callback function to get the media player state. More... | |
virtual bool | Play ()=0 |
A callback function to play the media player. More... | |
virtual void | Release ()=0 |
A callback function used to release current callback object itself. More... | |
virtual bool | Seek (int current_pos)=0 |
A callback function to seek the media player. More... | |
virtual bool | Stop ()=0 |
A callback function to stop the media player. More... | |
This class represents a callback object for performing media player actions. All the pure virtual functions in this class are used as callback functions and should be implemented by user.
Enumeration for media player state.
Values of this enumeration should be used alone.
|
pure virtual |
A callback function to close the media player.
This callback function will be triggered by the javascript method "MediaPlayer.close".
|
pure virtual |
A callback function to get the media player settings.
This callback function will be triggered by the javascript property "MediaPlayer.visible".
|
pure virtual |
A callback function to get the media player state.
This callback function will be triggered by the javascript property "MediaPlayer.isOpen".
|
pure virtual |
A callback function to play the media player.
This callback function will be triggered by the javascript method "MediaPlayer.play".
|
pure virtual |
A callback function used to release current callback object itself.
|
pure virtual |
A callback function to seek the media player.
This callback function will be triggered by the javascript method "MediaPlayer.seek".
[in] | current_pos | Indicate the playback location. |
|
pure virtual |
A callback function to stop the media player.
This callback function will be triggered by the javascript method "MediaPlayer.stop".