wsflv

package
v0.0.0-...-e172d51 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FLVCloseCallback

type FLVCloseCallback func(url string, app string, uid string)

type FLVConnectCallback

type FLVConnectCallback func(url string, app string, uid string, headers http.Header)

type FLVWriter

type FLVWriter struct {
	Uid string
	av.RWBaser
	// contains filtered or unexported fields
}

func NewFLVWriter

func NewFLVWriter(app, title, url string, ctx *websocket.Conn, callback FLVCloseCallback) *FLVWriter

func (*FLVWriter) Close

func (self *FLVWriter) Close(error)

func (*FLVWriter) DropPacket

func (self *FLVWriter) DropPacket(pktQue chan av.Packet, info av.Info)

func (*FLVWriter) Info

func (self *FLVWriter) Info() (ret av.Info)

func (*FLVWriter) SendPacket

func (self *FLVWriter) SendPacket() error

func (self *FLVWriter) Write(p av.Packet) error {

func (*FLVWriter) Wait

func (self *FLVWriter) Wait()

func (*FLVWriter) Write

func (self *FLVWriter) Write(p av.Packet) error

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(h av.Handler) *Server

func NewServerFunc

func NewServerFunc(h av.Handler, connCallback FLVConnectCallback, callback FLVCloseCallback) *Server

func (*Server) Serve

func (self *Server) Serve(l net.Listener) error

Jump to

Keyboard shortcuts

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