Class: TencentCloud::Mps::V20190612::CreateOutputSRTSettings
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::CreateOutputSRTSettings
- Defined in:
- lib/v20190612/models.rb
Overview
创建媒体传输流的输出的SRT配置。
Instance Attribute Summary collapse
- #Destinations ⇒ Object
- #FEC ⇒ Object
- #Latency ⇒ Object
- #Mode ⇒ Object
- #Passphrase ⇒ Object
- #PbKeyLen ⇒ Object
- #PeerIdleTimeout ⇒ Object
- #PeerLatency ⇒ Object
- #RecvLatency ⇒ Object
- #StreamId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(destinations = nil, streamid = nil, latency = nil, recvlatency = nil, peerlatency = nil, peeridletimeout = nil, passphrase = nil, pbkeylen = nil, mode = nil, fec = nil) ⇒ CreateOutputSRTSettings
constructor
A new instance of CreateOutputSRTSettings.
Constructor Details
#initialize(destinations = nil, streamid = nil, latency = nil, recvlatency = nil, peerlatency = nil, peeridletimeout = nil, passphrase = nil, pbkeylen = nil, mode = nil, fec = nil) ⇒ CreateOutputSRTSettings
Returns a new instance of CreateOutputSRTSettings.
9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 |
# File 'lib/v20190612/models.rb', line 9011 def initialize(destinations=nil, streamid=nil, latency=nil, recvlatency=nil, peerlatency=nil, peeridletimeout=nil, passphrase=nil, pbkeylen=nil, mode=nil, fec=nil) @Destinations = destinations @StreamId = streamid @Latency = latency @RecvLatency = recvlatency @PeerLatency = peerlatency @PeerIdleTimeout = peeridletimeout @Passphrase = passphrase @PbKeyLen = pbkeylen @Mode = mode @FEC = fec end |
Instance Attribute Details
#Destinations ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def Destinations @Destinations end |
#FEC ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def FEC @FEC end |
#Latency ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def Latency @Latency end |
#Mode ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def Mode @Mode end |
#Passphrase ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def Passphrase @Passphrase end |
#PbKeyLen ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def PbKeyLen @PbKeyLen end |
#PeerIdleTimeout ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def PeerIdleTimeout @PeerIdleTimeout end |
#PeerLatency ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def PeerLatency @PeerLatency end |
#RecvLatency ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def RecvLatency @RecvLatency end |
#StreamId ⇒ Object
9009 9010 9011 |
# File 'lib/v20190612/models.rb', line 9009 def StreamId @StreamId end |
Instance Method Details
#deserialize(params) ⇒ Object
9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 |
# File 'lib/v20190612/models.rb', line 9024 def deserialize(params) unless params['Destinations'].nil? @Destinations = [] params['Destinations'].each do |i| createoutputsrtsettingsdestinations_tmp = CreateOutputSRTSettingsDestinations.new createoutputsrtsettingsdestinations_tmp.deserialize(i) @Destinations << createoutputsrtsettingsdestinations_tmp end end @StreamId = params['StreamId'] @Latency = params['Latency'] @RecvLatency = params['RecvLatency'] @PeerLatency = params['PeerLatency'] @PeerIdleTimeout = params['PeerIdleTimeout'] @Passphrase = params['Passphrase'] @PbKeyLen = params['PbKeyLen'] @Mode = params['Mode'] unless params['FEC'].nil? @FEC = SRTFECFullOptions.new @FEC.deserialize(params['FEC']) end end |