clients

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddFFmpegSourceResponse

type AddFFmpegSourceResponse struct {
	CommonResponse
	Data struct {
		Key string `json:"key"`
	} `json:"data"`
}

type AddStreamProxyResponse

type AddStreamProxyResponse struct {
	CommonResponse
}

type AddStreamPusherProxyResponse

type AddStreamPusherProxyResponse struct {
	CommonResponse
	Data struct {
		Key string `json:"key"`
	} `json:"data"`
}

type CloseStreamResponse

type CloseStreamResponse struct {
	CommonResponse
	Result int `json:"result"`
}

type CloseStreamsResponse

type CloseStreamsResponse struct {
	CommonResponse
	CountHit    int `json:"count_hit"`
	CountClosed int `json:"count_closed"`
}

type CommonResponse

type CommonResponse struct {
	Code    int    `json:"code"`
	Message string `json:"msg"`
}

type DelFFmpegSourceResponse

type DelFFmpegSourceResponse struct {
	CommonResponse
	Data struct {
		Flag bool `json:"flag"`
	} `json:"data"`
}

type DelStreamProxyResponse

type DelStreamProxyResponse struct {
	CommonResponse
	Data struct {
		Flag bool `json:"flag"`
	} `json:"data"`
}

type DelStreamPusherProxyResponse

type DelStreamPusherProxyResponse struct {
	CommonResponse
	Data struct {
		Flag bool `json:"flag"`
	} `json:"data"`
}

type GetMediaPlayerListResponse

type GetMediaPlayerListResponse struct {
	CommonResponse
	Data []struct {
		Identifier string `json:"identifier"`
		LocalIp    string `json:"local_ip"`
		LocalPort  int    `json:"local_port"`
		PeerIp     string `json:"peer_ip"`
		PeerPort   int    `json:"peer_port"`
		Typeid     string `json:"typeid"`
	} `json:"data"`
}

type IsMediaOnlineResponse

type IsMediaOnlineResponse struct {
	CommonResponse
	Online bool `json:"online"`
}

type ZLMClient

type ZLMClient struct {
	Native *zlm.ClientWithResponses
}

func NewZLMClient

func NewZLMClient(server string, opts ...zlm.ClientOption) (*ZLMClient, error)

func (*ZLMClient) AddFFmpegSource

func (c *ZLMClient) AddFFmpegSource(ctx context.Context, params *zlm.AddFFmpegSourceParams) (*AddFFmpegSourceResponse, error)

func (*ZLMClient) AddStreamProxy

func (c *ZLMClient) AddStreamProxy(ctx context.Context, params *zlm.AddStreamProxyParams) (*AddStreamProxyResponse, error)

func (*ZLMClient) AddStreamPusherProxy

func (c *ZLMClient) AddStreamPusherProxy(ctx context.Context, params *zlm.AddStreamPusherProxyParams) (*AddStreamPusherProxyResponse, error)

func (*ZLMClient) CloseStream

func (c *ZLMClient) CloseStream(ctx context.Context, params *zlm.CloseStreamParams) (*CloseStreamResponse, error)

func (*ZLMClient) CloseStreams

func (c *ZLMClient) CloseStreams(ctx context.Context, params *zlm.CloseStreamsParams) (*CloseStreamsResponse, error)

func (*ZLMClient) DelFFmpegSource

func (c *ZLMClient) DelFFmpegSource(ctx context.Context, params *zlm.DelFFmpegSourceParams) (*DelFFmpegSourceResponse, error)

func (*ZLMClient) DelStreamProxy

func (c *ZLMClient) DelStreamProxy(ctx context.Context, params *zlm.DelStreamProxyParams) (*DelStreamProxyResponse, error)

func (*ZLMClient) DelStreamPusherProxy

func (c *ZLMClient) DelStreamPusherProxy(ctx context.Context, params *zlm.DelStreamPusherProxyParams) (*DelStreamPusherProxyResponse, error)

func (*ZLMClient) GetMediaPlayerList

func (c *ZLMClient) GetMediaPlayerList(ctx context.Context, params *zlm.GetMediaPlayerListParams) (*GetMediaPlayerListResponse, error)

func (*ZLMClient) IsMediaOnline

func (c *ZLMClient) IsMediaOnline(ctx context.Context, params *zlm.IsMediaOnlineParams) (*IsMediaOnlineResponse, error)

Jump to

Keyboard shortcuts

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