Documentation ¶
Index ¶
- Constants
- func GetCipherInfoFromSignatureCipher(cipherUrl string) (*cipherInfo, error)
- func GetCipherInfoFromUrl(cipherUrl string) (*cipherInfo, error)
- func NewPersistentYoutubeStream(contentUrl string, contentLength int) (*persistentYoutubeStream, error)
- func Reverse(s string) string
- type CipherOperation
- type YoutubeVideo
- type YoutubedlFormat
- type YoutubedlVideo
Constants ¶
View Source
const ( SWAP int = iota REVERSE SLICE SPLICE )
Variables ¶
This section is empty.
Functions ¶
func GetCipherInfoFromSignatureCipher ¶
takes a url as string and returns a cipherinfo based on the json "signatureCipher"
func GetCipherInfoFromUrl ¶
takes a url as string and returns a cipherinfo based on the json "signatureCipher"
Types ¶
type CipherOperation ¶
type CipherOperation struct {
// contains filtered or unexported fields
}
type YoutubeVideo ¶
type YoutubeVideo struct {
// contains filtered or unexported fields
}
func NewYoutubeVideo ¶
func NewYoutubeVideo(videoid string) (*YoutubeVideo, error)
func (*YoutubeVideo) GetPCMFrame ¶
func (y *YoutubeVideo) GetPCMFrame(duration int) ([]int16, error)
Returns a Mono PCMFrame with the given duration in milliseconds
func (*YoutubeVideo) GetTitle ¶
func (y *YoutubeVideo) GetTitle() string
type YoutubedlFormat ¶ added in v0.3.0
type YoutubedlVideo ¶ added in v0.3.0
type YoutubedlVideo struct { // used for json unmarshal of youtube-dl output Id string Title string Formats []YoutubedlFormat // contains filtered or unexported fields }
func NewYoutubedlVideo ¶ added in v0.3.0
func NewYoutubedlVideo(path string) (*YoutubedlVideo, error)
func (*YoutubedlVideo) GetPCMFrame ¶ added in v0.3.0
func (y *YoutubedlVideo) GetPCMFrame(duration int) ([]int16, error)
Returns a Mono PCMFrame with the given duration in milliseconds
func (*YoutubedlVideo) GetTitle ¶ added in v0.3.0
func (y *YoutubedlVideo) GetTitle() string
Click to show internal directories.
Click to hide internal directories.