Class: TencentCloud::Iotvideoindustry::V20201201::ControlRecordStreamRequest

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

Overview

ControlRecordStream请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, streamid = nil, command = nil, channelid = nil) ⇒ ControlRecordStreamRequest

Returns a new instance of ControlRecordStreamRequest.



507
508
509
510
511
512
# File 'lib/v20201201/models.rb', line 507

def initialize(deviceid=nil, streamid=nil, command=nil, channelid=nil)
  @DeviceId = deviceid
  @StreamId = streamid
  @Command = command
  @ChannelId = channelid
end

Instance Attribute Details

#ChannelIdObject

| Offset | uint |否|拖动播放时的时间偏移量(相对于起始时间),单位:秒目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 位置偏移,可以替代jump操作

Parameters:

  • DeviceId:

    设备Id,设备的唯一标识

  • StreamId:

    流Id,流的唯一标识

  • Command:

    |控制参数,CmdJson结构转义的json字符串。| Action | string |是|控制动作,play(用于暂停后恢复播放)、pause(暂停)、teardown(停止)、jump(拖动播放)

  • ChannelId:

    通道唯一标识



505
506
507
# File 'lib/v20201201/models.rb', line 505

def ChannelId
  @ChannelId
end

#CommandObject

| Offset | uint |否|拖动播放时的时间偏移量(相对于起始时间),单位:秒目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 位置偏移,可以替代jump操作

Parameters:

  • DeviceId:

    设备Id,设备的唯一标识

  • StreamId:

    流Id,流的唯一标识

  • Command:

    |控制参数,CmdJson结构转义的json字符串。| Action | string |是|控制动作,play(用于暂停后恢复播放)、pause(暂停)、teardown(停止)、jump(拖动播放)

  • ChannelId:

    通道唯一标识



505
506
507
# File 'lib/v20201201/models.rb', line 505

def Command
  @Command
end

#DeviceIdObject

| Offset | uint |否|拖动播放时的时间偏移量(相对于起始时间),单位:秒目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 位置偏移,可以替代jump操作

Parameters:

  • DeviceId:

    设备Id,设备的唯一标识

  • StreamId:

    流Id,流的唯一标识

  • Command:

    |控制参数,CmdJson结构转义的json字符串。| Action | string |是|控制动作,play(用于暂停后恢复播放)、pause(暂停)、teardown(停止)、jump(拖动播放)

  • ChannelId:

    通道唯一标识



505
506
507
# File 'lib/v20201201/models.rb', line 505

def DeviceId
  @DeviceId
end

#StreamIdObject

| Offset | uint |否|拖动播放时的时间偏移量(相对于起始时间),单位:秒目前支持的command:“Command”: “”Action“:”PAUSE“” 暂停“Command”: “”Action“:”PLAY“” 暂停恢复“Command”: “”Action“:”PLAY“,”Offset“:”15“” 位置偏移,可以替代jump操作

Parameters:

  • DeviceId:

    设备Id,设备的唯一标识

  • StreamId:

    流Id,流的唯一标识

  • Command:

    |控制参数,CmdJson结构转义的json字符串。| Action | string |是|控制动作,play(用于暂停后恢复播放)、pause(暂停)、teardown(停止)、jump(拖动播放)

  • ChannelId:

    通道唯一标识



505
506
507
# File 'lib/v20201201/models.rb', line 505

def StreamId
  @StreamId
end

Instance Method Details

#deserialize(params) ⇒ Object



514
515
516
517
518
519
# File 'lib/v20201201/models.rb', line 514

def deserialize(params)
  @DeviceId = params['DeviceId']
  @StreamId = params['StreamId']
  @Command = params['Command']
  @ChannelId = params['ChannelId']
end