Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeMagnet = "magnet" // TypeMagnet contains a magnet link TypePause = "pause" // TypePause synchronizes play/pause state TypePosition = "position" // TypePosition synchronizes seek positions TypeBuffering = "buffering" // TypeBuffering synchronizes buffering state )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffering ¶
type Buffering struct { Message Buffering bool `json:"buffering"` // Whether to show the buffering state }
Buffering synchronizes buffering state
func NewBuffering ¶
type Magnet ¶
type Magnet struct { Message Magnet string `json:"magnet"` // Encapsulated magnet link Path string `json:"path"` // Path of the media to play Title string `json:"title"` // Title of the media to play Description string `json:"description"` // Description of the media to play Subtitles []Subtitle `json:"subtitles"` // Subtitles of the media to play }
Magnet contains a magnet link
func NewMagnetLink ¶
type Message ¶
type Message struct {
Type string `json:"type"` // Message type to unmarshal to
}
Message is a generic message container
Click to show internal directories.
Click to hide internal directories.