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.



7774
7775
7776
7777
# File 'lib/v20190612/models.rb', line 7774

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

Instance Attribute Details

#ChunkSizeObject

Parameters:

  • Destinations:

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

  • ChunkSize:

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



7772
7773
7774
# File 'lib/v20190612/models.rb', line 7772

def ChunkSize
  @ChunkSize
end

#DestinationsObject

Parameters:

  • Destinations:

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

  • ChunkSize:

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



7772
7773
7774
# File 'lib/v20190612/models.rb', line 7772

def Destinations
  @Destinations
end

Instance Method Details

#deserialize(params) ⇒ Object



7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
# File 'lib/v20190612/models.rb', line 7779

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