stream

package
v0.0.0-...-a73d9ad Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(youtubeURL, fileName string, downloadLimit int) error

func FileExist

func FileExist(fileName string) bool

FileExist checks if file exist in current directory

func FromLocalFile

func FromLocalFile(ffmpeg, fileName, dst string) error

FromLocalFile streams video from local file downloaded from youtube

func FromYoutubeURL

func FromYoutubeURL(ffmpeg, youtubeURL, dst, rootPath string) error

FromYoutubeURL streams from youtube. First we need to get streamable url to file, then restream it

func GetFileNameByURL

func GetFileNameByURL(url string, rootPath string) string

GetFileNameByURL returns MD5 hash from youtube url

func GetStreamURL

func GetStreamURL(url string) (string, string, error)

GetStreamURL returns Title of youtube video and url for re-stream

func RemoveFile

func RemoveFile(fileName string) error

RemoveFile removes file by youtube URL

func RenameFile

func RenameFile(fileName string) error

RenameFile removes .download extension from filename

Types

This section is empty.

Jump to

Keyboard shortcuts

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