Class: TencentCloud::Iss::V20230517::ControlRecordRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230517/models.rb

Overview

ControlRecord请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channelid = nil, session = nil, controlaction = nil, position = nil, scale = nil) ⇒ ControlRecordRequest

Returns a new instance of ControlRecordRequest.



1802
1803
1804
1805
1806
1807
1808
# File 'lib/v20230517/models.rb', line 1802

def initialize(channelid=nil, session=nil, controlaction=nil, position=nil, scale=nil)
  @ChannelId = channelid
  @Session = session
  @ControlAction = controlaction
  @Position = position
  @Scale = scale
end

Instance Attribute Details

#ChannelIdObject

Parameters:

  • ChannelId:

    通道ID(录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • Session:

    录像会话 ID ( 录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • ControlAction:

    录像操作类型 (play:播放;pause:暂停 ;stop:关闭)

  • Position:

    跳转进度 ( 参数应大于等于0,跳转到录像开始时间的相对时间(单位秒),例如0就是跳转到录像开始的时间,不可以和 Scale 参数同时出现)

  • Scale:

    速度 ( 范围(0.25,0.5,1,2,4,8),不可以和 Pos 参数同时出现)



1800
1801
1802
# File 'lib/v20230517/models.rb', line 1800

def ChannelId
  @ChannelId
end

#ControlActionObject

Parameters:

  • ChannelId:

    通道ID(录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • Session:

    录像会话 ID ( 录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • ControlAction:

    录像操作类型 (play:播放;pause:暂停 ;stop:关闭)

  • Position:

    跳转进度 ( 参数应大于等于0,跳转到录像开始时间的相对时间(单位秒),例如0就是跳转到录像开始的时间,不可以和 Scale 参数同时出现)

  • Scale:

    速度 ( 范围(0.25,0.5,1,2,4,8),不可以和 Pos 参数同时出现)



1800
1801
1802
# File 'lib/v20230517/models.rb', line 1800

def ControlAction
  @ControlAction
end

#PositionObject

Parameters:

  • ChannelId:

    通道ID(录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • Session:

    录像会话 ID ( 录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • ControlAction:

    录像操作类型 (play:播放;pause:暂停 ;stop:关闭)

  • Position:

    跳转进度 ( 参数应大于等于0,跳转到录像开始时间的相对时间(单位秒),例如0就是跳转到录像开始的时间,不可以和 Scale 参数同时出现)

  • Scale:

    速度 ( 范围(0.25,0.5,1,2,4,8),不可以和 Pos 参数同时出现)



1800
1801
1802
# File 'lib/v20230517/models.rb', line 1800

def Position
  @Position
end

#ScaleObject

Parameters:

  • ChannelId:

    通道ID(录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • Session:

    录像会话 ID ( 录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • ControlAction:

    录像操作类型 (play:播放;pause:暂停 ;stop:关闭)

  • Position:

    跳转进度 ( 参数应大于等于0,跳转到录像开始时间的相对时间(单位秒),例如0就是跳转到录像开始的时间,不可以和 Scale 参数同时出现)

  • Scale:

    速度 ( 范围(0.25,0.5,1,2,4,8),不可以和 Pos 参数同时出现)



1800
1801
1802
# File 'lib/v20230517/models.rb', line 1800

def Scale
  @Scale
end

#SessionObject

Parameters:

  • ChannelId:

    通道ID(录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • Session:

    录像会话 ID ( 录像播放地址格式 https://$domain/live/$#ChannelId@$#Session

  • ControlAction:

    录像操作类型 (play:播放;pause:暂停 ;stop:关闭)

  • Position:

    跳转进度 ( 参数应大于等于0,跳转到录像开始时间的相对时间(单位秒),例如0就是跳转到录像开始的时间,不可以和 Scale 参数同时出现)

  • Scale:

    速度 ( 范围(0.25,0.5,1,2,4,8),不可以和 Pos 参数同时出现)



1800
1801
1802
# File 'lib/v20230517/models.rb', line 1800

def Session
  @Session
end

Instance Method Details

#deserialize(params) ⇒ Object



1810
1811
1812
1813
1814
1815
1816
# File 'lib/v20230517/models.rb', line 1810

def deserialize(params)
  @ChannelId = params['ChannelId']
  @Session = params['Session']
  @ControlAction = params['ControlAction']
  @Position = params['Position']
  @Scale = params['Scale']
end