hdl

package module
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 12 Imported by: 1

README

HDL插件

HDL插件主要功能是提供HTTP-FLV协议的访问

插件地址

github.com/Monibuca/plugin-hdl

插件引入

import (
    _ "github.com/Monibuca/plugin-hdl"
)

默认插件配置

[HDL]
ListenAddr = ":2020" #默认为空
ListenAddrTLS = ":2021" #默认为空
CertFile = "file.cert" #默认为空
KeyFile = "file.key" #默认为空
  • ListenAddr是监听的地址,如果配置为空字符串,则是复用Gateway插件监听的公共端口
  • ListenAddrTLS 公共https监听端口,默认为空,则不监听
  • CertFile https用的证书,默认为空
  • KeyFile https用的证书的key,默认为空

插件功能

从m7s拉取http-flv协议流

如果m7s中已经存在live/test流的话就可以用http-flv协议进行播放 如果监听端口不配置则公用Gateway的端口(默认8080)

ffplay -i http://localhost:8080/hdl/live/test.flv

如果配置了端口监听,则可以省略hdl路由,例如

ffplay -i http://localhost:2020/live/test.flv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HDLHandler

func HDLHandler(w http.ResponseWriter, r *http.Request)

func PullStream

func PullStream(streamPath, url string) error

func WriteEcmaArray

func WriteEcmaArray(w amf.Writer, o amf.Object) (n int, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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