Documentation ¶
Index ¶
- type OMXPlayer
- func (o *OMXPlayer) AudioStream(index int) int
- func (o *OMXPlayer) Chapter(chapter int) int
- func (o *OMXPlayer) Close() error
- func (o *OMXPlayer) Open(waiting chan string) error
- func (o *OMXPlayer) Pause() error
- func (o *OMXPlayer) Play() error
- func (o *OMXPlayer) PlaybackRate(rate float64) float64
- func (o *OMXPlayer) Position(microseconds int64) int64
- func (o *OMXPlayer) Seek(microseconds int64, whence int) (int64, error)
- func (o *OMXPlayer) Stop()
- func (o *OMXPlayer) SubtitleStream(index int) int
- func (o *OMXPlayer) VideoStream(index int) int
- func (o *OMXPlayer) Volume(volume float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OMXPlayer ¶
type OMXPlayer struct {
// contains filtered or unexported fields
}
OMXPlayer is a go interface for raspbian's OMXPlayer.
func NewOMXPlayer ¶
NewOMXPlayer returns a pointer to a new OMXPlayer instance. cmd should always be nil, unless a mock is being sent in for a test.
func (*OMXPlayer) AudioStream ¶
AudioStream sets the audio stream and returns the current audio stream.
func (*OMXPlayer) Chapter ¶
Chapter seeks the video position to a specific chapter and returns the current chapter.
func (*OMXPlayer) Pause ¶
Pause the video. If the video is playing, it will be paused, if it is paused it will stay in pause (no effect).
func (*OMXPlayer) Play ¶
Play the video. If the video is playing, it has no effect, if it is paused it will play from current position.
func (*OMXPlayer) PlaybackRate ¶
PlaybackRate sets the playback rate of the video and returns the current playback rate.
func (*OMXPlayer) Position ¶
Position seeks the video to a certain position in the video, in microseconds, and returns the current positon of the video.
func (*OMXPlayer) Seek ¶
Seek seeks the video forward or backward in microseconds and returns the current position of the video.
func (*OMXPlayer) SubtitleStream ¶
SubtitleStream sets the subtitle stream and returns the current subtitle stream.
func (*OMXPlayer) VideoStream ¶
VideoStream sets the video stream and returns the current video stream.