v2

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 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 GenReqDefForRemoveRoom added in v0.1.5

func GenReqDefForRemoveRoom() *def.HttpRequestDef

func GenReqDefForRemoveUsers added in v0.1.5

func GenReqDefForRemoveUsers() *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 GenReqDefForUpdateIndividualStreamJob added in v0.1.5

func GenReqDefForUpdateIndividualStreamJob() *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

CreateApp 创建应用

调用此接口创建应用。

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) CreateAppInvoker added in v0.0.90

func (c *CloudRTCClient) CreateAppInvoker(request *model.CreateAppRequest) *CreateAppInvoker

CreateAppInvoker 创建应用

func (*CloudRTCClient) CreateIndividualStreamJob

CreateIndividualStreamJob 启动单流任务

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

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) CreateIndividualStreamJobInvoker added in v0.0.90

func (c *CloudRTCClient) CreateIndividualStreamJobInvoker(request *model.CreateIndividualStreamJobRequest) *CreateIndividualStreamJobInvoker

CreateIndividualStreamJobInvoker 启动单流任务

func (*CloudRTCClient) CreateMixJob

CreateMixJob 启动合流任务

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

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

- 纯音频录制

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

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

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

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

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) CreateMixJobInvoker added in v0.0.90

func (c *CloudRTCClient) CreateMixJobInvoker(request *model.CreateMixJobRequest) *CreateMixJobInvoker

CreateMixJobInvoker 启动合流任务

func (*CloudRTCClient) CreateRecordRule added in v0.0.53

CreateRecordRule 创建或更新录制规则

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) CreateRecordRuleInvoker added in v0.0.90

func (c *CloudRTCClient) CreateRecordRuleInvoker(request *model.CreateRecordRuleRequest) *CreateRecordRuleInvoker

CreateRecordRuleInvoker 创建或更新录制规则

func (*CloudRTCClient) DeleteApp added in v0.0.53

DeleteApp 删除应用

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) DeleteAppInvoker added in v0.0.90

func (c *CloudRTCClient) DeleteAppInvoker(request *model.DeleteAppRequest) *DeleteAppInvoker

DeleteAppInvoker 删除应用

func (*CloudRTCClient) DeleteRecordRule added in v0.0.53

DeleteRecordRule 删除录制规则

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) DeleteRecordRuleInvoker added in v0.0.90

func (c *CloudRTCClient) DeleteRecordRuleInvoker(request *model.DeleteRecordRuleRequest) *DeleteRecordRuleInvoker

DeleteRecordRuleInvoker 删除录制规则

func (*CloudRTCClient) ListApps added in v0.0.53

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

ListApps 查询应用列表

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ListAppsInvoker added in v0.0.90

func (c *CloudRTCClient) ListAppsInvoker(request *model.ListAppsRequest) *ListAppsInvoker

ListAppsInvoker 查询应用列表

func (*CloudRTCClient) ListRecordRules added in v0.0.53

ListRecordRules 查询录制规则列表

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ListRecordRulesInvoker added in v0.0.90

func (c *CloudRTCClient) ListRecordRulesInvoker(request *model.ListRecordRulesRequest) *ListRecordRulesInvoker

ListRecordRulesInvoker 查询录制规则列表

func (*CloudRTCClient) RemoveRoom added in v0.1.5

RemoveRoom 解散房间

调用此接口解散房间,将该房间中所有用户踢出房间。

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) RemoveRoomInvoker added in v0.1.5

func (c *CloudRTCClient) RemoveRoomInvoker(request *model.RemoveRoomRequest) *RemoveRoomInvoker

RemoveRoomInvoker 解散房间

func (*CloudRTCClient) RemoveUsers added in v0.1.5

RemoveUsers 踢除在线用户

调用此接口强制用户离开房间。

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) RemoveUsersInvoker added in v0.1.5

func (c *CloudRTCClient) RemoveUsersInvoker(request *model.RemoveUsersRequest) *RemoveUsersInvoker

RemoveUsersInvoker 踢除在线用户

func (*CloudRTCClient) ShowApp added in v0.0.53

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

ShowApp 查询单个应用

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowAppInvoker added in v0.0.90

func (c *CloudRTCClient) ShowAppInvoker(request *model.ShowAppRequest) *ShowAppInvoker

ShowAppInvoker 查询单个应用

func (*CloudRTCClient) ShowAutoRecord added in v0.0.53

ShowAutoRecord 查询自动录制配置

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowAutoRecordInvoker added in v0.0.90

func (c *CloudRTCClient) ShowAutoRecordInvoker(request *model.ShowAutoRecordRequest) *ShowAutoRecordInvoker

ShowAutoRecordInvoker 查询自动录制配置

func (*CloudRTCClient) ShowIndividualStreamJob

ShowIndividualStreamJob 查询单流任务状态

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowIndividualStreamJobInvoker added in v0.0.90

func (c *CloudRTCClient) ShowIndividualStreamJobInvoker(request *model.ShowIndividualStreamJobRequest) *ShowIndividualStreamJobInvoker

ShowIndividualStreamJobInvoker 查询单流任务状态

func (*CloudRTCClient) ShowMixJob

ShowMixJob 查询合流任务

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowMixJobInvoker added in v0.0.90

func (c *CloudRTCClient) ShowMixJobInvoker(request *model.ShowMixJobRequest) *ShowMixJobInvoker

ShowMixJobInvoker 查询合流任务

func (*CloudRTCClient) ShowRecordCallback added in v0.0.53

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowRecordCallbackInvoker added in v0.0.90

func (c *CloudRTCClient) ShowRecordCallbackInvoker(request *model.ShowRecordCallbackRequest) *ShowRecordCallbackInvoker

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

func (*CloudRTCClient) ShowRecordRule added in v0.0.53

ShowRecordRule 查询录制规则

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowRecordRuleInvoker added in v0.0.90

func (c *CloudRTCClient) ShowRecordRuleInvoker(request *model.ShowRecordRuleRequest) *ShowRecordRuleInvoker

ShowRecordRuleInvoker 查询录制规则

func (*CloudRTCClient) ShowUrlAuth added in v0.0.53

ShowUrlAuth 查询访问控制参数

查询应用鉴权配置参数

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) ShowUrlAuthInvoker added in v0.0.90

func (c *CloudRTCClient) ShowUrlAuthInvoker(request *model.ShowUrlAuthRequest) *ShowUrlAuthInvoker

ShowUrlAuthInvoker 查询访问控制参数

func (*CloudRTCClient) StartApp added in v0.0.53

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

StartApp 启用应用

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) StartAppInvoker added in v0.0.90

func (c *CloudRTCClient) StartAppInvoker(request *model.StartAppRequest) *StartAppInvoker

StartAppInvoker 启用应用

func (*CloudRTCClient) StopApp added in v0.0.53

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

StopApp 停用应用

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) StopAppInvoker added in v0.0.90

func (c *CloudRTCClient) StopAppInvoker(request *model.StopAppRequest) *StopAppInvoker

StopAppInvoker 停用应用

func (*CloudRTCClient) StopIndividualStreamJob

StopIndividualStreamJob 停止单流任务

调用此接口停止单流任务

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) StopIndividualStreamJobInvoker added in v0.0.90

func (c *CloudRTCClient) StopIndividualStreamJobInvoker(request *model.StopIndividualStreamJobRequest) *StopIndividualStreamJobInvoker

StopIndividualStreamJobInvoker 停止单流任务

func (*CloudRTCClient) StopMixJob

StopMixJob 停止合流任务

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) StopMixJobInvoker added in v0.0.90

func (c *CloudRTCClient) StopMixJobInvoker(request *model.StopMixJobRequest) *StopMixJobInvoker

StopMixJobInvoker 停止合流任务

func (*CloudRTCClient) UpdateAutoRecord added in v0.0.53

UpdateAutoRecord 更新自动录制配置

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateAutoRecordInvoker added in v0.0.90

func (c *CloudRTCClient) UpdateAutoRecordInvoker(request *model.UpdateAutoRecordRequest) *UpdateAutoRecordInvoker

UpdateAutoRecordInvoker 更新自动录制配置

func (*CloudRTCClient) UpdateIndividualStreamJob added in v0.1.5

UpdateIndividualStreamJob 更新单流任务

调用此接口修改单流任务。

仅部分场景支持修改。

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateIndividualStreamJobInvoker added in v0.1.5

func (c *CloudRTCClient) UpdateIndividualStreamJobInvoker(request *model.UpdateIndividualStreamJobRequest) *UpdateIndividualStreamJobInvoker

UpdateIndividualStreamJobInvoker 更新单流任务

func (*CloudRTCClient) UpdateMixJob

UpdateMixJob 修改合流任务

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateMixJobInvoker added in v0.0.90

func (c *CloudRTCClient) UpdateMixJobInvoker(request *model.UpdateMixJobRequest) *UpdateMixJobInvoker

UpdateMixJobInvoker 修改合流任务

func (*CloudRTCClient) UpdateRecordCallback added in v0.0.53

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

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

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

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateRecordCallbackInvoker added in v0.0.90

func (c *CloudRTCClient) UpdateRecordCallbackInvoker(request *model.UpdateRecordCallbackRequest) *UpdateRecordCallbackInvoker

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

func (*CloudRTCClient) UpdateRecordRule added in v0.0.53

UpdateRecordRule 更新录制规则

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateRecordRuleInvoker added in v0.0.90

func (c *CloudRTCClient) UpdateRecordRuleInvoker(request *model.UpdateRecordRuleRequest) *UpdateRecordRuleInvoker

UpdateRecordRuleInvoker 更新录制规则

func (*CloudRTCClient) UpdateUrlAuth added in v0.0.53

UpdateUrlAuth 开关访问控制

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

Please refer to HUAWEI cloud API Explorer for details.

func (*CloudRTCClient) UpdateUrlAuthInvoker added in v0.0.90

func (c *CloudRTCClient) UpdateUrlAuthInvoker(request *model.UpdateUrlAuthRequest) *UpdateUrlAuthInvoker

UpdateUrlAuthInvoker 开关访问控制

type CreateAppInvoker added in v0.0.90

type CreateAppInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAppInvoker) Invoke added in v0.0.90

type CreateIndividualStreamJobInvoker added in v0.0.90

type CreateIndividualStreamJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateIndividualStreamJobInvoker) Invoke added in v0.0.90

type CreateMixJobInvoker added in v0.0.90

type CreateMixJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateMixJobInvoker) Invoke added in v0.0.90

type CreateRecordRuleInvoker added in v0.0.90

type CreateRecordRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateRecordRuleInvoker) Invoke added in v0.0.90

type DeleteAppInvoker added in v0.0.90

type DeleteAppInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAppInvoker) Invoke added in v0.0.90

type DeleteRecordRuleInvoker added in v0.0.90

type DeleteRecordRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteRecordRuleInvoker) Invoke added in v0.0.90

type ListAppsInvoker added in v0.0.90

type ListAppsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAppsInvoker) Invoke added in v0.0.90

func (i *ListAppsInvoker) Invoke() (*model.ListAppsResponse, error)

type ListRecordRulesInvoker added in v0.0.90

type ListRecordRulesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListRecordRulesInvoker) Invoke added in v0.0.90

type RemoveRoomInvoker added in v0.1.5

type RemoveRoomInvoker struct {
	*invoker.BaseInvoker
}

func (*RemoveRoomInvoker) Invoke added in v0.1.5

type RemoveUsersInvoker added in v0.1.5

type RemoveUsersInvoker struct {
	*invoker.BaseInvoker
}

func (*RemoveUsersInvoker) Invoke added in v0.1.5

type ShowAppInvoker added in v0.0.90

type ShowAppInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAppInvoker) Invoke added in v0.0.90

func (i *ShowAppInvoker) Invoke() (*model.ShowAppResponse, error)

type ShowAutoRecordInvoker added in v0.0.90

type ShowAutoRecordInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAutoRecordInvoker) Invoke added in v0.0.90

type ShowIndividualStreamJobInvoker added in v0.0.90

type ShowIndividualStreamJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowIndividualStreamJobInvoker) Invoke added in v0.0.90

type ShowMixJobInvoker added in v0.0.90

type ShowMixJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowMixJobInvoker) Invoke added in v0.0.90

type ShowRecordCallbackInvoker added in v0.0.90

type ShowRecordCallbackInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowRecordCallbackInvoker) Invoke added in v0.0.90

type ShowRecordRuleInvoker added in v0.0.90

type ShowRecordRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowRecordRuleInvoker) Invoke added in v0.0.90

type ShowUrlAuthInvoker added in v0.0.90

type ShowUrlAuthInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowUrlAuthInvoker) Invoke added in v0.0.90

type StartAppInvoker added in v0.0.90

type StartAppInvoker struct {
	*invoker.BaseInvoker
}

func (*StartAppInvoker) Invoke added in v0.0.90

func (i *StartAppInvoker) Invoke() (*model.StartAppResponse, error)

type StopAppInvoker added in v0.0.90

type StopAppInvoker struct {
	*invoker.BaseInvoker
}

func (*StopAppInvoker) Invoke added in v0.0.90

func (i *StopAppInvoker) Invoke() (*model.StopAppResponse, error)

type StopIndividualStreamJobInvoker added in v0.0.90

type StopIndividualStreamJobInvoker struct {
	*invoker.BaseInvoker
}

func (*StopIndividualStreamJobInvoker) Invoke added in v0.0.90

type StopMixJobInvoker added in v0.0.90

type StopMixJobInvoker struct {
	*invoker.BaseInvoker
}

func (*StopMixJobInvoker) Invoke added in v0.0.90

type UpdateAutoRecordInvoker added in v0.0.90

type UpdateAutoRecordInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAutoRecordInvoker) Invoke added in v0.0.90

type UpdateIndividualStreamJobInvoker added in v0.1.5

type UpdateIndividualStreamJobInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateIndividualStreamJobInvoker) Invoke added in v0.1.5

type UpdateMixJobInvoker added in v0.0.90

type UpdateMixJobInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateMixJobInvoker) Invoke added in v0.0.90

type UpdateRecordCallbackInvoker added in v0.0.90

type UpdateRecordCallbackInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRecordCallbackInvoker) Invoke added in v0.0.90

type UpdateRecordRuleInvoker added in v0.0.90

type UpdateRecordRuleInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateRecordRuleInvoker) Invoke added in v0.0.90

type UpdateUrlAuthInvoker added in v0.0.90

type UpdateUrlAuthInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateUrlAuthInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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