Class: TencentCloud::Mps::V20190612::CreateOutputRtmpSettingsDestinations

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(url = nil, streamkey = nil) ⇒ CreateOutputRtmpSettingsDestinations

Returns a new instance of CreateOutputRtmpSettingsDestinations.



8900
8901
8902
8903
# File 'lib/v20190612/models.rb', line 8900

def initialize(url=nil, streamkey=nil)
  @Url = url
  @StreamKey = streamkey
end

Instance Attribute Details

#StreamKeyObject

Parameters:

  • Url:

    转推的URL,格式如:rtmp://domain/live。

  • StreamKey:

    转推的StreamKey,格式如:stream?key=value。



8898
8899
8900
# File 'lib/v20190612/models.rb', line 8898

def StreamKey
  @StreamKey
end

#UrlObject

Parameters:

  • Url:

    转推的URL,格式如:rtmp://domain/live。

  • StreamKey:

    转推的StreamKey,格式如:stream?key=value。



8898
8899
8900
# File 'lib/v20190612/models.rb', line 8898

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



8905
8906
8907
8908
# File 'lib/v20190612/models.rb', line 8905

def deserialize(params)
  @Url = params['Url']
  @StreamKey = params['StreamKey']
end