Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
Name string
// contains filtered or unexported fields
}
func (*Agent) FlvPlayUrl ¶
func (*Agent) HlsPlayUrl ¶
type AliGeneratort ¶
type AliGeneratort struct{}
AliGeneratort 阿里 https://help.aliyun.com/zh/live/developer-reference/ingest-and-streaming-urls
func (AliGeneratort) FlvPlayUrl ¶
func (a AliGeneratort) FlvPlayUrl(key, app, stream string, exp int64) string
func (AliGeneratort) HlsPlayUrl ¶
func (a AliGeneratort) HlsPlayUrl(key, app, stream string, exp int64) string
func (AliGeneratort) PublishingAddress ¶
func (a AliGeneratort) PublishingAddress(key, app, stream string, exp int64) string
type Generator ¶
type Generator interface {
PublishingAddress(key, app, stream string, exp int64) string //推流地址
FlvPlayUrl(key, app, stream string, exp int64) string //播放地址
HlsPlayUrl(key, app, stream string, exp int64) string //播放地址
}
Generator StreamURLGenerator
type TxGeneratort ¶
type TxGeneratort struct{}
TxGeneratort 腾讯 https://cloud.tencent.com/document/product/267/35257
func (TxGeneratort) FlvPlayUrl ¶
func (t TxGeneratort) FlvPlayUrl(key, app, stream string, exp int64) string
func (TxGeneratort) HlsPlayUrl ¶
func (t TxGeneratort) HlsPlayUrl(key, app, stream string, exp int64) string
func (TxGeneratort) PublishingAddress ¶
func (t TxGeneratort) PublishingAddress(key, app, stream string, exp int64) string
type WsGeneratort ¶
type WsGeneratort struct{}
WsGeneratort 网宿 https://www.wangsu.com/document/livestream/171
func (WsGeneratort) FlvPlayUrl ¶
func (w WsGeneratort) FlvPlayUrl(key, app, stream string, exp int64) string
func (WsGeneratort) HlsPlayUrl ¶
func (w WsGeneratort) HlsPlayUrl(key, app, stream string, exp int64) string
func (WsGeneratort) PublishingAddress ¶
func (w WsGeneratort) PublishingAddress(key, app, stream string, exp int64) string
Click to show internal directories.
Click to hide internal directories.