Class: TencentCloud::Mps::V20190612::CreateOutputRTMPSettings

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

Overview

创建媒体传输流的输出的RTMP配置。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destinations = nil, chunksize = nil) ⇒ CreateOutputRTMPSettings

Returns a new instance of CreateOutputRTMPSettings.



8829
8830
8831
8832
# File 'lib/v20190612/models.rb', line 8829

def initialize(destinations=nil, chunksize=nil)
  @Destinations = destinations
  @ChunkSize = chunksize
end

Instance Attribute Details

#ChunkSizeObject

Parameters:

  • Destinations:

    转推的目标地址,可填1~2个。

  • ChunkSize:

    RTMP的Chunk大小,范围为[4096, 40960]。



8827
8828
8829
# File 'lib/v20190612/models.rb', line 8827

def ChunkSize
  @ChunkSize
end

#DestinationsObject

Parameters:

  • Destinations:

    转推的目标地址,可填1~2个。

  • ChunkSize:

    RTMP的Chunk大小,范围为[4096, 40960]。



8827
8828
8829
# File 'lib/v20190612/models.rb', line 8827

def Destinations
  @Destinations
end

Instance Method Details

#deserialize(params) ⇒ Object



8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
# File 'lib/v20190612/models.rb', line 8834

def deserialize(params)
  unless params['Destinations'].nil?
    @Destinations = []
    params['Destinations'].each do |i|
      createoutputrtmpsettingsdestinations_tmp = CreateOutputRtmpSettingsDestinations.new
      createoutputrtmpsettingsdestinations_tmp.deserialize(i)
      @Destinations << createoutputrtmpsettingsdestinations_tmp
    end
  end
  @ChunkSize = params['ChunkSize']
end