Class: TencentCloud::Vm::V20201229::ImageSegments

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

Overview

图片段信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offsettime = nil, result = nil, createdat = nil, offsetustime = nil) ⇒ ImageSegments

Returns a new instance of ImageSegments.



1034
1035
1036
1037
1038
1039
# File 'lib/v20201229/models.rb', line 1034

def initialize(offsettime=nil, result=nil, createdat=nil, offsetustime=nil)
  @OffsetTime = offsettime
  @Result = result
  @CreatedAt = createdat
  @OffsetusTime = offsetustime
end

Instance Attribute Details

#CreatedAtObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • OffsetTime:

    该字段用于返回视频片段的截帧时间,单位为秒。对于点播文件,该参数代表对应截取图片相对于视频的偏移时间,如0(代表不偏移),5(视频开始后5秒),10(视频开始后10秒);对于直播文件,该参数则返回对应图片的Unix时间戳,如:1594650717。

  • Result:

    该字段用于返回视频片段的具体截帧审核结果,详细内容敬请参考ImageResult数据结构的描述。

  • CreatedAt:

    该字段用于返回视频片段的具体截帧审核时间。

  • OffsetusTime:

    该字段用于返回视频片段的截帧时间,单位为豪秒。



1032
1033
1034
# File 'lib/v20201229/models.rb', line 1032

def CreatedAt
  @CreatedAt
end

#OffsetTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • OffsetTime:

    该字段用于返回视频片段的截帧时间,单位为秒。对于点播文件,该参数代表对应截取图片相对于视频的偏移时间,如0(代表不偏移),5(视频开始后5秒),10(视频开始后10秒);对于直播文件,该参数则返回对应图片的Unix时间戳,如:1594650717。

  • Result:

    该字段用于返回视频片段的具体截帧审核结果,详细内容敬请参考ImageResult数据结构的描述。

  • CreatedAt:

    该字段用于返回视频片段的具体截帧审核时间。

  • OffsetusTime:

    该字段用于返回视频片段的截帧时间,单位为豪秒。



1032
1033
1034
# File 'lib/v20201229/models.rb', line 1032

def OffsetTime
  @OffsetTime
end

#OffsetusTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • OffsetTime:

    该字段用于返回视频片段的截帧时间,单位为秒。对于点播文件,该参数代表对应截取图片相对于视频的偏移时间,如0(代表不偏移),5(视频开始后5秒),10(视频开始后10秒);对于直播文件,该参数则返回对应图片的Unix时间戳,如:1594650717。

  • Result:

    该字段用于返回视频片段的具体截帧审核结果,详细内容敬请参考ImageResult数据结构的描述。

  • CreatedAt:

    该字段用于返回视频片段的具体截帧审核时间。

  • OffsetusTime:

    该字段用于返回视频片段的截帧时间,单位为豪秒。



1032
1033
1034
# File 'lib/v20201229/models.rb', line 1032

def OffsetusTime
  @OffsetusTime
end

#ResultObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • OffsetTime:

    该字段用于返回视频片段的截帧时间,单位为秒。对于点播文件,该参数代表对应截取图片相对于视频的偏移时间,如0(代表不偏移),5(视频开始后5秒),10(视频开始后10秒);对于直播文件,该参数则返回对应图片的Unix时间戳,如:1594650717。

  • Result:

    该字段用于返回视频片段的具体截帧审核结果,详细内容敬请参考ImageResult数据结构的描述。

  • CreatedAt:

    该字段用于返回视频片段的具体截帧审核时间。

  • OffsetusTime:

    该字段用于返回视频片段的截帧时间,单位为豪秒。



1032
1033
1034
# File 'lib/v20201229/models.rb', line 1032

def Result
  @Result
end

Instance Method Details

#deserialize(params) ⇒ Object



1041
1042
1043
1044
1045
1046
1047
1048
1049
# File 'lib/v20201229/models.rb', line 1041

def deserialize(params)
  @OffsetTime = params['OffsetTime']
  unless params['Result'].nil?
    @Result = ImageResult.new
    @Result.deserialize(params['Result'])
  end
  @CreatedAt = params['CreatedAt']
  @OffsetusTime = params['OffsetusTime']
end