Documentation ¶
Index ¶
- Variables
- func Ass_f(save_path string, filePath string, st time.Time)
- func Assf(s string)
- func AutoSend_silver_gift()
- func Autobanf(s string) bool
- func Autoskipf(s string) uint
- func Danmuji_auto()
- func Danmujif(s string)
- func Entry_danmu()
- func Gui_show(m ...string)
- func Heart(b []byte)
- func IsOn(s string) bool
- func Itos(i []interface{}) string
- func Jiezouf(s []string) bool
- func Keep_medal_light()
- func Lessdanmuf(s string) (show bool)
- func Msg(b []byte)
- func Msg_senddanmu(msg string)
- func Msg_showdanmu(item Danmu_item)
- func PlayRecDanmu(filePath string) (*websocket.Server, func())
- func Reply(b []byte)
- func Save_to_json(Loc int, context []byte)
- func Search_stream_tag(buf []byte, keyframe *slice.Buf[byte]) (front_buf []byte, last_available_offset int, err error)
- func SendStreamWs(item Danmu_item)
- func Shortdanmuf(s string) string
- func ShowRevf()
- func StartRecDanmu(filePath string)
- func StopRecDanmu()
- func StreamOCommon(roomid int) (array []c.Common)
- func StreamOStart(roomid int)
- func StreamOStatus(roomid int) (Islive bool)
- func StreamOStop(roomid int)
- func TTS(msg string)
- type Ass
- type Autoban
- type Autoskip
- type Autoskip_item
- type Communicate
- type DanmuReLiveTriger
- type Danmu_item
- type Danmu_mq_t
- type Danmuji
- type Fmp4Decoder
- type Jiezou
- type Lessdanmu
- type M4SStream
- type M4SStream_Config
- type SavestreamO
- type Shortdanmu
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShowRev_old float64 ShowRev_start bool )
功能区 ShowRev 显示营收
View Source
var ( Ass_height = 720 //字幕高度 Ass_width = 1280 //字幕宽度 Ass_font = 50 //字幕字体大小 Ass_T = 7 //单条字幕显示时间 Ass_loc = 7 //字幕位置 小键盘对应的位置 )
View Source
var Danmu_mq = mq.New()
View Source
var Heart_map = map[string]func(replyF, int){
"heartbeat": replyF.heartbeat,
}
View Source
var Msg_map = map[string]func(replyF, string){}/* 105 elements not displayed */
Msg类型数据处理方法map
View Source
var Recoder = websocket.Recorder{ Server: StreamWs, }
弹幕回放
View Source
var StreamWs = websocket.New_server()
直播Web服务口
Functions ¶
func Danmuji_auto ¶
func Danmuji_auto()
func Lessdanmuf ¶
func PlayRecDanmu ¶ added in v0.5.10
func Save_to_json ¶ added in v0.5.8
func Search_stream_tag ¶ added in v0.6.1
func Search_stream_tag(buf []byte, keyframe *slice.Buf[byte]) (front_buf []byte, last_available_offset int, err error)
this fuction read []byte and return flv header and all complete keyframe if possible. complete keyframe means the video and audio tags between two video key frames tag
func SendStreamWs ¶ added in v0.5.10
func SendStreamWs(item Danmu_item)
func Shortdanmuf ¶
func StartRecDanmu ¶ added in v0.5.10
func StartRecDanmu(filePath string)
func StopRecDanmu ¶ added in v0.5.10
func StopRecDanmu()
Types ¶
type Autoskip_item ¶ added in v0.5.6
type Communicate ¶ added in v0.5.10
func (*Communicate) Count ¶ added in v0.5.10
func (t *Communicate) Count() int
func (*Communicate) Reset ¶ added in v0.5.10
func (t *Communicate) Reset()
func (*Communicate) Store ¶ added in v0.5.10
func (t *Communicate) Store(k interface{})
type DanmuReLiveTriger ¶ added in v0.7.3
type DanmuReLiveTriger struct {
// contains filtered or unexported fields
}
func (*DanmuReLiveTriger) Check ¶ added in v0.7.3
func (t *DanmuReLiveTriger) Check(uid, msg string)
func (*DanmuReLiveTriger) Init ¶ added in v0.7.3
func (t *DanmuReLiveTriger) Init(c *c.Common)
type Danmu_item ¶ added in v0.5.10
type Danmu_item struct {
// contains filtered or unexported fields
}
Msg-弹幕处理
type Danmu_mq_t ¶
type Danmu_mq_t struct {
// contains filtered or unexported fields
}
type Fmp4Decoder ¶ added in v0.5.10
type Fmp4Decoder struct {
// contains filtered or unexported fields
}
func (*Fmp4Decoder) Init_fmp4 ¶ added in v0.5.10
func (t *Fmp4Decoder) Init_fmp4(buf []byte) (b []byte, err error)
func (*Fmp4Decoder) Search_stream_fmp4 ¶ added in v0.6.1
type M4SStream ¶ added in v0.5.10
type M4SStream struct { Status *signal.Signal //IsLive()是否运行中 Stream_msg *msgq.MsgType[[]byte] //流数据消息 tag:data Current_save_path string //明确的直播流保存目录 Callback_start func(*M4SStream) error //实例开始的回调 Callback_startRec func(*M4SStream) error //录制开始的回调 Callback_stopRec func(*M4SStream) //录制结束的回调 Callback_stop func(*M4SStream) //实例结束的回调 // contains filtered or unexported fields }
func (*M4SStream) LoadConfig ¶ added in v0.5.10
type M4SStream_Config ¶ added in v0.5.10
type M4SStream_Config struct {
// contains filtered or unexported fields
}
type SavestreamO ¶ added in v0.5.10
type Shortdanmu ¶
type Shortdanmu struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.