Documentation
¶
Overview ¶
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-20
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Oct-28
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-20
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-20
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-20
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Nov-03
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-19
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Nov-03
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-19
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Nov-02
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Nov-01
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-19
Package webserver Created by RTT. Author: teocci@yandex.com on 2022-Apr-20
Package webserver Created by RTT. Author: teocci@yandex.com on 2021-Oct-28
Index ¶
- Constants
- Variables
- func CORSMiddleware() gin.HandlerFunc
- func ErrorEmptyCodec() error
- func ErrorEmptyPayloadRequest() error
- func ErrorParsingJSONRequest(e error) error
- func ErrorRemoteAuthorizationFailed() error
- func HandleAddChannel(c *gin.Context)
- func HandleAddStream(c *gin.Context)
- func HandleChannelCodec(c *gin.Context)
- func HandleChannelInfo(c *gin.Context)
- func HandleDeleteChannel(c *gin.Context)
- func HandleDeleteStream(c *gin.Context)
- func HandleEditChannel(c *gin.Context)
- func HandleEditStream(c *gin.Context)
- func HandleIndex(c *gin.Context)
- func HandlePageAddStream(c *gin.Context)
- func HandlePageDocumentation(c *gin.Context)
- func HandlePageEditStream(c *gin.Context)
- func HandlePageFullScreenMultiView(c *gin.Context)
- func HandlePageMultiview(c *gin.Context)
- func HandlePagePlayAll(c *gin.Context)
- func HandlePagePlayHLS(c *gin.Context)
- func HandlePagePlayMSE(c *gin.Context)
- func HandlePagePlayWebRTC(c *gin.Context)
- func HandlePageStreamList(c *gin.Context)
- func HandleReloadChannel(c *gin.Context)
- func HandleReloadStream(c *gin.Context)
- func HandleStreamHLSLLInit(c *gin.Context)
- func HandleStreamHLSLLM3U8(c *gin.Context)
- func HandleStreamHLSLLM4Segment(c *gin.Context)
- func HandleStreamHLSM3U8(c *gin.Context)
- func HandleStreamHLSTS(c *gin.Context)
- func HandleStreamInfo(c *gin.Context)
- func HandleStreamLLHLSM4Fragment(c *gin.Context)
- func HandleStreamWebRTC(c *gin.Context)
- func HandleStreams(c *gin.Context)
- func HandleStreamsMultiControlAdd(c *gin.Context)
- func HandleStreamsMultiControlDelete(c *gin.Context)
- func SendResponse(c *gin.Context, response ResponseMessage)
- func Start(s *session.Session)
- func SupportedCodecs() []av.CodecType
- type ExecStatus
- type HTMLCode
- type MultiViewOptions
- type MultiViewOptionsGrid
- type Response
- type ResponseError
- type ResponseMessage
- type ServeResponse
- type StreamData
- type StreamRequest
- type WebCodec
Constants ¶
const ( StatusCodeFail = 0 StatusCodeSuccess = 1 Success = "success" )
Variables ¶
var Session *session.Session
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
func ErrorEmptyCodec ¶
func ErrorEmptyCodec() error
func ErrorEmptyPayloadRequest ¶
func ErrorEmptyPayloadRequest() error
func ErrorParsingJSONRequest ¶
func ErrorRemoteAuthorizationFailed ¶
func ErrorRemoteAuthorizationFailed() error
func HandleAddChannel ¶
HandleAddChannel function add new stream
func HandleChannelCodec ¶
HandleChannelCodec function return codec info struct
func HandleChannelInfo ¶
HandleChannelInfo function return stream info struct
func HandleDeleteChannel ¶
HandleDeleteChannel function delete stream
func HandleDeleteStream ¶
HandleDeleteStream function delete stream
func HandleEditChannel ¶
HandleEditChannel function edit stream
func HandlePageAddStream ¶
func HandlePageDocumentation ¶
func HandlePageEditStream ¶
func HandlePageMultiview ¶
func HandlePagePlayAll ¶
func HandlePagePlayHLS ¶
func HandlePagePlayMSE ¶
func HandlePagePlayWebRTC ¶
func HandlePageStreamList ¶
func HandleReloadChannel ¶
HandleReloadChannel function reload stream
func HandleStreamHLSLLInit ¶
HandleStreamHLSLLInit send client ts segment
func HandleStreamHLSLLM3U8 ¶
HandleStreamHLSLLM3U8 send client m3u8 play list
func HandleStreamHLSLLM4Segment ¶
HandleStreamHLSLLM4Segment send client ts segment
func HandleStreamHLSM3U8 ¶
HandleStreamHLSM3U8 send client m3u8 play list
func HandleStreamHLSTS ¶
HandleStreamHLSTS send client ts segment
func HandleStreamInfo ¶
HandleStreamInfo function return stream info struct
func HandleStreamLLHLSM4Fragment ¶
HandleStreamLLHLSM4Fragment send client ts segment
func HandleStreamWebRTC ¶
HandleStreamWebRTC stream video over WebRTC
func HandleStreamsMultiControlAdd ¶
HandleStreamsMultiControlAdd function add new stream's
func HandleStreamsMultiControlDelete ¶
HandleStreamsMultiControlDelete function delete stream's
func SendResponse ¶
func SendResponse(c *gin.Context, response ResponseMessage)
func SupportedCodecs ¶
Types ¶
type ExecStatus ¶
type MultiViewOptions ¶
type MultiViewOptions struct { Grid int `json:"grid"` Player map[string]MultiViewOptionsGrid `json:"player"` }
type MultiViewOptionsGrid ¶
type Response ¶
type Response struct { Status int StreamData StreamData Message []string Error []string }
type ResponseError ¶
type ResponseError struct {
Error string `json:"error"`
}
type ResponseMessage ¶
type ServeResponse ¶
type StreamData ¶
type StreamData struct { StreamID string `json:"stream_id"` Tracks []WebCodec `json:"tracks,omitempty"` Sdp64 string `json:"sdp64,omitempty"` }
func (StreamData) IsNil ¶
func (sd StreamData) IsNil() bool
type StreamRequest ¶
type StreamRequest struct { StreamID string `json:"stream_id"` ChannelID string `json:"channel_id,omitempty"` RtspURL string `json:"rtsp_url,omitempty"` OnDemand bool `json:"on_demand,omitempty"` DisableAudio bool `json:"disable_audio,omitempty"` Debug bool `json:"debug,omitempty"` SDP64 string `json:"data,omitempty"` }
func (*StreamRequest) IsNil ¶
func (ssr *StreamRequest) IsNil() bool