synctube

package
v0.0.0-...-ac92875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	Config *synkoboto.Configuration
	Client *http.Client
	Logger *logrus.Logger
	Clock  clock.Clock
}

Creator is in charge of creating and managing SyncTube rooms.

func NewCreator

func NewCreator(cfg *synkoboto.Configuration, c *http.Client, l *logrus.Logger) *Creator

NewCreator ...

func (*Creator) CreateRoom

func (c *Creator) CreateRoom() (*Room, error)

CreateRoom creates a new SyncTube room.

func (*Creator) SetPermissions

func (c *Creator) SetPermissions(r *Room) error

SetPermissions updates the Room permissions by connection to the Room websocket and allowing everybody to skip, seek, play, move, add and remove videos This function also renames the Room to Koufar TV

type Room

type Room struct {
	ID     string `json:"id"`
	URL    string
	Cookie *http.Cookie
}

Room represents a remote SyncTube room

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL