ts

package module
v4.0.0-...-bb45532 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 3 Imported by: 1

README

TS插件

处理TS数据的插件

功能

  1. 通过Publish发布一个TS流,然后通过Feed方法填入TS数据即可
  2. 通过PublishDir可以读取服务器上文件夹内的所有ts文件进行发布

默认配置

[TS]
BufferLength = 2048
Path         = "ts"
  • BufferLength指的是解析TS流的时候的缓存大小,单位是PES包的个数
  • Path 指存放ts的目录

API

  • /api/ts/list 罗列所有ts文件
  • /api/ts/publish?streamPath=live/rtc 开始将文件夹内的ts文件逐个读取,发布成一个直播流

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TSConfig

type TSConfig struct {
}

func (*TSConfig) OnEvent

func (config *TSConfig) OnEvent(event any)

type TSDir

type TSDir struct {
	StreamPath string
	TsCount    int
	TotalSize  int64
}

type TSPuller

type TSPuller struct {
	Publisher
	Puller
	PesCount int
}

func (*TSPuller) Pull

func (ts *TSPuller) Pull()

Jump to

Keyboard shortcuts

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