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.



8975
8976
8977
8978
# File 'lib/v20190612/models.rb', line 8975

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。



8973
8974
8975
# File 'lib/v20190612/models.rb', line 8973

def StreamKey
  @StreamKey
end

#UrlObject

Parameters:

  • Url:

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

  • StreamKey:

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



8973
8974
8975
# File 'lib/v20190612/models.rb', line 8973

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



8980
8981
8982
8983
# File 'lib/v20190612/models.rb', line 8980

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