ubox

package
v0.22.21 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ubox include resources of ucloud ubox product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraStream

type CameraStream struct {

	// 摄像头ID
	ID string

	// 摄像头是否在线
	IsOnline bool

	// 摄像头名称
	Name string

	// 拉流地址, 是 map 格式, key 是流类型, value是地址
	PullRTMPAddress PullRTMPAddress

	// 小窗口视频拉流地址
	SmallPullRTMPAddress string

	// 推流状态
	Status int

	// 视频参数
	VideoParams string
}

CameraStream - 摄像头推/拉流信息

type GetSdnboxCameraListRequest

type GetSdnboxCameraListRequest struct {
	request.CommonBase
}

GetSdnboxCameraListRequest is request schema for GetSdnboxCameraList action

type GetSdnboxCameraListResponse

type GetSdnboxCameraListResponse struct {
	response.CommonBase

	// 摄像头推流列表
	SdnboxCamera []SdnboxCamera
}

GetSdnboxCameraListResponse is response schema for GetSdnboxCameraList action

type PullRTMPAddress added in v0.21.27

type PullRTMPAddress struct {

	//
	Dash string

	//
	Flv string

	//
	Hls string

	//
	Rtmp string

	//
	Webrtc string
}

PullRTMPAddress -

type SdnboxCamera

type SdnboxCamera struct {

	// 摄像头流信息列表
	Camera []CameraStream

	// 盒子ID
	ID string

	// 盒子名称
	Name string
}

SdnboxCamera - 盒子连接的摄像头信息

type StartSdnboxCameraPushingRequest

type StartSdnboxCameraPushingRequest struct {
	request.CommonBase

	// 摄像头ID
	CameraId *string `required:"true"`

	// 盒子ID
	SdnboxId *string `required:"true"`
}

StartSdnboxCameraPushingRequest is request schema for StartSdnboxCameraPushing action

type StartSdnboxCameraPushingResponse

type StartSdnboxCameraPushingResponse struct {
	response.CommonBase
}

StartSdnboxCameraPushingResponse is response schema for StartSdnboxCameraPushing action

type StopSdnboxCameraPushingRequest

type StopSdnboxCameraPushingRequest struct {
	request.CommonBase

	// 摄像头ID
	CameraId *string `required:"true"`

	// 盒子ID
	SdnboxId *string `required:"true"`
}

StopSdnboxCameraPushingRequest is request schema for StopSdnboxCameraPushing action

type StopSdnboxCameraPushingResponse

type StopSdnboxCameraPushingResponse struct {
	response.CommonBase
}

StopSdnboxCameraPushingResponse is response schema for StopSdnboxCameraPushing action

type UBoxClient

type UBoxClient struct {
	*ucloud.Client
}

UBoxClient is the client of UBox

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UBoxClient

NewClient will return a instance of UBoxClient

func (*UBoxClient) GetSdnboxCameraList

API: GetSdnboxCameraList

获取盒子摄像头推流列表

func (*UBoxClient) NewGetSdnboxCameraListRequest

func (c *UBoxClient) NewGetSdnboxCameraListRequest() *GetSdnboxCameraListRequest

NewGetSdnboxCameraListRequest will create request of GetSdnboxCameraList action.

func (*UBoxClient) NewStartSdnboxCameraPushingRequest

func (c *UBoxClient) NewStartSdnboxCameraPushingRequest() *StartSdnboxCameraPushingRequest

NewStartSdnboxCameraPushingRequest will create request of StartSdnboxCameraPushing action.

func (*UBoxClient) NewStopSdnboxCameraPushingRequest

func (c *UBoxClient) NewStopSdnboxCameraPushingRequest() *StopSdnboxCameraPushingRequest

NewStopSdnboxCameraPushingRequest will create request of StopSdnboxCameraPushing action.

func (*UBoxClient) StartSdnboxCameraPushing

API: StartSdnboxCameraPushing

摄像头推流开启

func (*UBoxClient) StopSdnboxCameraPushing

API: StopSdnboxCameraPushing

摄像头推流关闭

Jump to

Keyboard shortcuts

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