Class: TencentCloud::Mps::V20190612::RTMPAddressDestination

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) ⇒ RTMPAddressDestination

Returns a new instance of RTMPAddressDestination.



25666
25667
25668
25669
# File 'lib/v20190612/models.rb', line 25666

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

Instance Attribute Details

#StreamKeyObject

Parameters:

  • Url:

    转推RTMP的目标Url,格式如'rtmp://domain/live'。

  • StreamKey:

    转推RTMP的目标StreamKey,格式如'steamid?key=value'。



25664
25665
25666
# File 'lib/v20190612/models.rb', line 25664

def StreamKey
  @StreamKey
end

#UrlObject

Parameters:

  • Url:

    转推RTMP的目标Url,格式如'rtmp://domain/live'。

  • StreamKey:

    转推RTMP的目标StreamKey,格式如'steamid?key=value'。



25664
25665
25666
# File 'lib/v20190612/models.rb', line 25664

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



25671
25672
25673
25674
# File 'lib/v20190612/models.rb', line 25671

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