Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotSupported is returned when the request operation is not // supported by the active scriptplayer. ErrNotSupported = errors.New("operation is not supported") // ErrNotPlaying is returned when the operation is only supported while // a script is playing. ErrNotPlaying = errors.New("not playing") )
View Source
var ConnectionTimeout = time.Second * 10
ConnectionTimeout is the default timeout used per Launch connecting attempt.
Functions ¶
This section is empty.
Types ¶
type LaunchManager ¶
LaunchManager is responsible for connecting and communicating with the Launch.
func NewLaunchManager ¶
func NewLaunchManager(l golaunch.Launch) *LaunchManager
NewLaunchManager creates a new manager for the given Launch.
func (*LaunchManager) Pause ¶
func (m *LaunchManager) Pause() error
Pause will halt playback but keep the current position.
func (*LaunchManager) Play ¶
func (m *LaunchManager) Play() error
Play will start playback using the loaded scriptplayer to the connected Launch.
func (*LaunchManager) Resume ¶
func (m *LaunchManager) Resume() error
Resume starts playback from the paused position.
func (*LaunchManager) SetScriptPlayer ¶
func (m *LaunchManager) SetScriptPlayer(p protocol.Player) error
SetScriptPlayer switches the active ScriptPlayer. Any active script will be stopped.
func (*LaunchManager) Skip ¶
func (m *LaunchManager) Skip(p time.Duration) error
Skip jumps playback position to the specified time.
func (*LaunchManager) Stop ¶
func (m *LaunchManager) Stop() error
Stop will halt playback and reset the scriptplayer.
Click to show internal directories.
Click to hide internal directories.