youtube

package
v0.0.0-...-cf6f472 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const RETRIES = 25

How often a new connection attempt should be done. With a starting delay of 500ms that exponentially increases, this is about 5 minutes.

View Source
const RETRY_TIMEOUT = 500

Initial retry timeout in milliseconds. This timeout increases exponentially.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomID

type RandomID struct {
	// contains filtered or unexported fields
}

RandomID implements the 'rid' field for the Channel API.

func NewRandomID

func NewRandomID() *RandomID

NewRandomID returns a new initialized RID counter.

func (*RandomID) Next

func (rid *RandomID) Next() int

Next returns the next RID, incrementing the humber by one.

func (*RandomID) Restart

func (rid *RandomID) Restart()

Restart resets the counter to a new random value (as if a new RID object was created).

type YouTube

type YouTube struct {
	// contains filtered or unexported fields
}

The YouTube app can play the audio track of YouTube videos, and is designed to be very lightweight (not running Chrome).

func New

func New(systemName string) *YouTube

New returns a new YouTube object (app).

func (*YouTube) Data

func (yt *YouTube) Data(requestData string) string

func (*YouTube) FriendlyName

func (yt *YouTube) FriendlyName() string

func (*YouTube) Quit

func (yt *YouTube) Quit()

Quit stops this app if it is running.

func (*YouTube) Running

func (yt *YouTube) Running() bool

func (*YouTube) Start

func (yt *YouTube) Start(postData string)

Start starts the YouTube app asynchronously. Attaches a new device if the app has already started.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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