Class: WebRTC::RTCRtpCodecParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/webrtc/parity_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload_type:, mime_type:, clock_rate:, channels: nil, sdp_fmtp_line: nil) ⇒ RTCRtpCodecParameters

Returns a new instance of RTCRtpCodecParameters.



282
283
284
285
286
287
288
# File 'lib/webrtc/parity_types.rb', line 282

def initialize(payload_type:, mime_type:, clock_rate:, channels: nil, sdp_fmtp_line: nil)
  @payload_type = payload_type
  @mime_type = mime_type
  @clock_rate = clock_rate
  @channels = channels
  @sdp_fmtp_line = sdp_fmtp_line
end

Instance Attribute Details

#channelsObject

Returns the value of attribute channels.



280
281
282
# File 'lib/webrtc/parity_types.rb', line 280

def channels
  @channels
end

#clock_rateObject

Returns the value of attribute clock_rate.



280
281
282
# File 'lib/webrtc/parity_types.rb', line 280

def clock_rate
  @clock_rate
end

#mime_typeObject

Returns the value of attribute mime_type.



280
281
282
# File 'lib/webrtc/parity_types.rb', line 280

def mime_type
  @mime_type
end

#payload_typeObject

Returns the value of attribute payload_type.



280
281
282
# File 'lib/webrtc/parity_types.rb', line 280

def payload_type
  @payload_type
end

#sdp_fmtp_lineObject

Returns the value of attribute sdp_fmtp_line.



280
281
282
# File 'lib/webrtc/parity_types.rb', line 280

def sdp_fmtp_line
  @sdp_fmtp_line
end