Player module - SPPlayerInterface
Interface functions for communication with the Player and Player
window.
Constants
Player state
To determine the player state, use these constants.
PLAYER_STATE_NO_FILE=0
PLAYER_STATE_PAUSED=1
PLAYER_STATE_PLAYING=2
PLAYER_STATE_STOPPED=3
Player Mode
PLAYER_MODE_NORMAL=0
PLAYER_MODE_DVD=1
PLAYER_MODE_CAPTURE=1
Module methods
get_current_time()
- Get the current player time in seconds.
get_current_frame()
- Get the current player frame.
get_current_fps()
- Get the current player FPS.
get_current_time_mode()
- Get the current time mode (frames or time).
get_current_state()
- Get the current state of the player.
get_current_player_mode()
- Get the current mode of the player.
play()
pause()
stop()
seek_to_frame(frame)
- Move playback position to specified frame.
seek_to_time(time)
- Move playback position to specified time.