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.
7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 |
# File 'lib/v20190612/models.rb', line 7881 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
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def Destinations @Destinations end |
#FEC ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def FEC @FEC end |
#Latency ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def Latency @Latency end |
#Mode ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def Mode @Mode end |
#Passphrase ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def Passphrase @Passphrase end |
#PbKeyLen ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def PbKeyLen @PbKeyLen end |
#PeerIdleTimeout ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def PeerIdleTimeout @PeerIdleTimeout end |
#PeerLatency ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def PeerLatency @PeerLatency end |
#RecvLatency ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def RecvLatency @RecvLatency end |
#StreamId ⇒ Object
7879 7880 7881 |
# File 'lib/v20190612/models.rb', line 7879 def StreamId @StreamId end |
Instance Method Details
#deserialize(params) ⇒ Object
7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 |
# File 'lib/v20190612/models.rb', line 7894 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 |