Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockedPlayer ¶
MockedPlayer is the mocking implementation of Player.
func NewMockedPlayer ¶
func NewMockedPlayer() *MockedPlayer
NewMockedPlayer returns a new MockedPlayer.
type Options ¶
type Options struct { // StartTime defines the time from which the // track is to be played. StartTime uint `json:"startTime,omitempty"` // EndTime defines the time until the track is // to be played. EndTime uint `json:"endTime,omitempty"` // Volume defines the volume at which the track // is played. Volume uint `json:"volume,omitempty"` // NoReplace defines whether this action should be // ignored if another track is currently playing. NoReplace bool `json:"noReplace,omitempty"` // Paused defines whether the playback should be paused. Paused bool `json:"paused,omitempty"` }
Options is used to configure further specifications of the Player.Play method.
func MinimizeOptions ¶
MinimizeOptions minimizes the passed options to a single one.
func (*Options) WithEndTime ¶
WithEndTime sets the end time to the parameter value.
func (*Options) WithNoReplace ¶
WithNoReplace sets no replace to the parameter value.
func (*Options) WithPaused ¶
WithPaused sets paused to the parameter value.
func (*Options) WithStartTime ¶
WithStartTime sets the start time to the parameter value.
func (*Options) WithVolume ¶
WithVolume sets the volume to the parameter value.
Click to show internal directories.
Click to hide internal directories.