live

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeTsFiles

func MergeTsFiles(dir string, dstFileName string)

MergeTsFiles 将录制得到的众多.ts文件合并为一个.mp4文件

Types

type Live

type Live struct {
	RoomID string

	Password string // 观看直播间需要输入的密码

	SaveDir string
	// contains filtered or unexported fields
}

Live 包含房间号、直播链接和直播状态等信息

func (*Live) DownloadReplayVideo added in v0.8.0

func (l *Live) DownloadReplayVideo()

DownloadReplayVideo 下载指定直播间的快速回放视频

func (*Live) ShowLiveInfo added in v0.8.3

func (l *Live) ShowLiveInfo()

ShowLiveInfo 按照格式输出直播的基本信息

func (*Live) WaitAndRecordTheLive

func (l *Live) WaitAndRecordTheLive(liveTime string, autoMerge bool)

WaitAndRecordTheLive 倒计时结束后开始录制直播

Jump to

Keyboard shortcuts

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