v2

package
v0.0.87 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudRTCClientBuilder

func CloudRTCClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateApp added in v0.0.53

func GenReqDefForCreateApp() *def.HttpRequestDef

func GenReqDefForCreateIndividualStreamJob

func GenReqDefForCreateIndividualStreamJob() *def.HttpRequestDef

func GenReqDefForCreateMixJob

func GenReqDefForCreateMixJob() *def.HttpRequestDef

func GenReqDefForCreateRecordRule added in v0.0.53

func GenReqDefForCreateRecordRule() *def.HttpRequestDef

func GenReqDefForDeleteApp added in v0.0.53

func GenReqDefForDeleteApp() *def.HttpRequestDef

func GenReqDefForDeleteRecordRule added in v0.0.53

func GenReqDefForDeleteRecordRule() *def.HttpRequestDef

func GenReqDefForListApps added in v0.0.53

func GenReqDefForListApps() *def.HttpRequestDef

func GenReqDefForListRecordRules added in v0.0.53

func GenReqDefForListRecordRules() *def.HttpRequestDef

func GenReqDefForShowApp added in v0.0.53

func GenReqDefForShowApp() *def.HttpRequestDef

func GenReqDefForShowAutoRecord added in v0.0.53

func GenReqDefForShowAutoRecord() *def.HttpRequestDef

func GenReqDefForShowIndividualStreamJob

func GenReqDefForShowIndividualStreamJob() *def.HttpRequestDef

func GenReqDefForShowMixJob

func GenReqDefForShowMixJob() *def.HttpRequestDef

func GenReqDefForShowRecordCallback added in v0.0.53

func GenReqDefForShowRecordCallback() *def.HttpRequestDef

func GenReqDefForShowRecordRule added in v0.0.53

func GenReqDefForShowRecordRule() *def.HttpRequestDef

func GenReqDefForShowUrlAuth added in v0.0.53

func GenReqDefForShowUrlAuth() *def.HttpRequestDef

func GenReqDefForStartApp added in v0.0.53

func GenReqDefForStartApp() *def.HttpRequestDef

func GenReqDefForStopApp added in v0.0.53

func GenReqDefForStopApp() *def.HttpRequestDef

func GenReqDefForStopIndividualStreamJob

func GenReqDefForStopIndividualStreamJob() *def.HttpRequestDef

func GenReqDefForStopMixJob

func GenReqDefForStopMixJob() *def.HttpRequestDef

func GenReqDefForUpdateAutoRecord added in v0.0.53

func GenReqDefForUpdateAutoRecord() *def.HttpRequestDef

func GenReqDefForUpdateMixJob

func GenReqDefForUpdateMixJob() *def.HttpRequestDef

func GenReqDefForUpdateRecordCallback added in v0.0.53

func GenReqDefForUpdateRecordCallback() *def.HttpRequestDef

func GenReqDefForUpdateRecordRule added in v0.0.53

func GenReqDefForUpdateRecordRule() *def.HttpRequestDef

func GenReqDefForUpdateUrlAuth added in v0.0.53

func GenReqDefForUpdateUrlAuth() *def.HttpRequestDef

Types

type CloudRTCClient

type CloudRTCClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCloudRTCClient

func NewCloudRTCClient(hcClient *http_client.HcHttpClient) *CloudRTCClient

func (*CloudRTCClient) CreateApp added in v0.0.53

创建应用

调用此接口创建应用。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) CreateIndividualStreamJob

启动单流任务

调用此接口接口启动单流任务。

API触发单流录制流名规则:{jobtype}\\_{jobid}\\_{roomid}\\_{userid}

jobtype取值为's'代表单流录制。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) CreateMixJob

启动合流任务

调用此接口创建合流转码任务。

支持纯音频录制和音视频录制:

- 纯音频录制

encode_template填audio_only,音频合流会动态选择最大三方的声音。

layout_template、layout_panes以及其他视频相关参数都不填,填就忽略。

- 音视频录制(包括共享桌面)

encode_template非audio_only,layout_template、layout_panes必须非空。

音频合流会动态选择最大三方的声音。

API触发合流录制流名规则:{jobtype}\\_{jobid}\\_{roomid},其中jobtype取值为'm'代表合流录制。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) CreateRecordRule added in v0.0.53

创建或更新录制规则

调用此接口创建或更新录制规则。

- 若当前app在请求的location中无录制规则,则会创建新的录制规则 - 若当前app在请求的location中已有录制规则,则会更新原来的录制规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) DeleteApp added in v0.0.53

删除应用

调用此接口删除单个应用。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) DeleteRecordRule added in v0.0.53

删除录制规则

调用此接口删除录制规则,对于正在使用的录制规则,不允许删除。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ListApps added in v0.0.53

func (c *CloudRTCClient) ListApps(request *model.ListAppsRequest) (*model.ListAppsResponse, error)

查询应用列表

调用此接口查询应用列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ListRecordRules added in v0.0.53

查询录制规则列表

调用此接口查询录制规则列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowApp added in v0.0.53

func (c *CloudRTCClient) ShowApp(request *model.ShowAppRequest) (*model.ShowAppResponse, error)

查询单个应用

调用此接口查询单个应用详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowAutoRecord added in v0.0.53

查询自动录制配置

调用此接口查询自动录制配置

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowIndividualStreamJob

查询单流任务状态

调用此接口查询单流任务状态。

租户的OBS桶内的情况,暂不支持查询。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowMixJob

查询合流任务

调用此接口查询合流转码任务状态。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowRecordCallback added in v0.0.53

查询增值(录制)事件回调配置

调用此接口查询增值(录制)事件回调配置

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowRecordRule added in v0.0.53

查询录制规则

调用此接口查询指定录制规则。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) ShowUrlAuth added in v0.0.53

查询访问控制参数

查询应用鉴权配置参数

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) StartApp added in v0.0.53

func (c *CloudRTCClient) StartApp(request *model.StartAppRequest) (*model.StartAppResponse, error)

启用应用

调用此接口启用单个应用。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) StopApp added in v0.0.53

func (c *CloudRTCClient) StopApp(request *model.StopAppRequest) (*model.StopAppResponse, error)

停用应用

调用此接口停用单个应用。

应用停用后,新房间无法新增和加入,已加入的房间可以继续使用。合流、录制功能等也不可用。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) StopIndividualStreamJob

停止单流任务

调用此接口停止单流任务

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) StopMixJob

停止合流任务

调用此接口停止已下发的合流转码任务。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) UpdateAutoRecord added in v0.0.53

更新自动录制配置

更新自动录制配置,租户可以开启自动单流录制或者停用自动单流录制。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) UpdateMixJob

修改合流任务

调用此接口更新合流任务布局。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) UpdateRecordCallback added in v0.0.53

RTC增值(录制)事件回调配置

调用此接口配置增值(录制)事件上报回调。

当任务发生订阅了的事件时,通过该接口配置的回调地址通知。

回调格式参考/customer-record-notify-url定义。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) UpdateRecordRule added in v0.0.53

更新录制规则

调用此接口更新录制规则。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*CloudRTCClient) UpdateUrlAuth added in v0.0.53

开关访问控制

调用此接口开启或关闭URL鉴权。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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