Documentation ¶
Index ¶
- func Download(youtubeURL, fileName string, downloadLimit int) error
- func FileExist(fileName string) bool
- func FromLocalFile(ffmpeg, fileName, dst string) error
- func FromYoutubeURL(ffmpeg, youtubeURL, dst, rootPath string) error
- func GetFileNameByURL(url string, rootPath string) string
- func GetStreamURL(url string) (string, string, error)
- func RemoveFile(fileName string) error
- func RenameFile(fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromLocalFile ¶
FromLocalFile streams video from local file downloaded from youtube
func FromYoutubeURL ¶
FromYoutubeURL streams from youtube. First we need to get streamable url to file, then restream it
func GetFileNameByURL ¶
GetFileNameByURL returns MD5 hash from youtube url
func GetStreamURL ¶
GetStreamURL returns Title of youtube video and url for re-stream
func RenameFile ¶
RenameFile removes .download extension from filename
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.