streamurl

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 4 Imported by: 0

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 New

func New(name, pushDomain, pushAuthKey, pullDomain, pullAuthKey string, https bool) (*Agent, error)

func (*Agent) FlvPlayUrl

func (agt *Agent) FlvPlayUrl(appName, streamName string, expireAt int64) string

func (*Agent) HlsPlayUrl

func (agt *Agent) HlsPlayUrl(appName, streamName string, expireAt int64) string

func (*Agent) PublishingAddress

func (agt *Agent) PublishingAddress(appName, streamName string, expireAt int64) string

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

Jump to

Keyboard shortcuts

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