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 ¶
- func Exists(liveId string) bool
- func InitJpegStreamServer(rulex typex.RuleX)
- func RegisterJpegStreamSource(liveId string) error
- type JpegStream
- type JpegStreamServer
- func (s *JpegStreamServer) DeleteJpegStreamSource(liveId string)
- func (s *JpegStreamServer) Exists(liveId string) bool
- func (s *JpegStreamServer) GetJpegStreamSource(liveId string) (*JpegStream, error)
- func (s *JpegStreamServer) Init(cfg map[string]any) error
- func (s *JpegStreamServer) JpegStreamFlush()
- func (s *JpegStreamServer) JpegStreamSourceList() []JpegStream
- func (s *JpegStreamServer) PluginMetaInfo() component.XComponentMetaInfo
- func (s *JpegStreamServer) RegisterJpegStreamSource(liveId string) error
- func (s *JpegStreamServer) Start(r typex.RuleX) error
- func (s *JpegStreamServer) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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) Stop ¶
func (s *JpegStreamServer) Stop() error