jpegstream

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (C) 2024 wwhai

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(liveId string) bool

func InitJpegStreamServer

func InitJpegStreamServer(rulex typex.RuleX)

* * 初始化 *

func RegisterJpegStreamSource

func RegisterJpegStreamSource(liveId string) error

Types

type JpegStream

type JpegStream struct {
	GetFirstFrame bool
	Type          string
	LiveId        string
	Pulled        bool
	Resolution    utils.Resolution
	// contains filtered or unexported fields
}

func GetJpegStreamSource

func GetJpegStreamSource(liveId string) (*JpegStream, error)

func JpegStreamSourceList

func JpegStreamSourceList() []JpegStream

func (*JpegStream) GetRawFrame

func (s *JpegStream) GetRawFrame() []byte

func (*JpegStream) GetWebJpegFrame

func (s *JpegStream) GetWebJpegFrame() []byte

func (JpegStream) String

func (S JpegStream) String() string

func (*JpegStream) UpdateJPEG

func (s *JpegStream) UpdateJPEG(jpeg []byte)

type JpegStreamServer

type JpegStreamServer struct {
	JpegStreams map[string]*JpegStream // 当前的JpegStream列表, Key:liveId
	// contains filtered or unexported fields
}

func (*JpegStreamServer) DeleteJpegStreamSource

func (s *JpegStreamServer) DeleteJpegStreamSource(liveId string)

func (*JpegStreamServer) Exists

func (s *JpegStreamServer) Exists(liveId string) bool

func (*JpegStreamServer) GetJpegStreamSource

func (s *JpegStreamServer) GetJpegStreamSource(liveId string) (*JpegStream, error)

func (*JpegStreamServer) Init

func (s *JpegStreamServer) Init(cfg map[string]any) error

func (*JpegStreamServer) JpegStreamFlush

func (s *JpegStreamServer) JpegStreamFlush()

func (*JpegStreamServer) JpegStreamSourceList

func (s *JpegStreamServer) JpegStreamSourceList() []JpegStream

func (*JpegStreamServer) PluginMetaInfo

func (s *JpegStreamServer) PluginMetaInfo() component.XComponentMetaInfo

func (*JpegStreamServer) RegisterJpegStreamSource

func (s *JpegStreamServer) RegisterJpegStreamSource(liveId string) error

func (*JpegStreamServer) Start

func (s *JpegStreamServer) Start(r typex.RuleX) error

func (*JpegStreamServer) Stop

func (s *JpegStreamServer) Stop() error

Jump to

Keyboard shortcuts

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