Class: WebRTC::RTCRtpCodecCapability

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mime_type:, clock_rate:, channels: nil, sdp_fmtp_line: nil, rtcp_feedback: []) ⇒ RTCRtpCodecCapability

Returns a new instance of RTCRtpCodecCapability.



261
262
263
264
265
266
267
# File 'lib/webrtc/parity_types.rb', line 261

def initialize(mime_type:, clock_rate:, channels: nil, sdp_fmtp_line: nil, rtcp_feedback: [])
  @mime_type = mime_type
  @clock_rate = clock_rate
  @channels = channels
  @sdp_fmtp_line = sdp_fmtp_line
  @rtcp_feedback = rtcp_feedback
end

Instance Attribute Details

#channelsObject (readonly)

Returns the value of attribute channels.



259
260
261
# File 'lib/webrtc/parity_types.rb', line 259

def channels
  @channels
end

#clock_rateObject (readonly)

Returns the value of attribute clock_rate.



259
260
261
# File 'lib/webrtc/parity_types.rb', line 259

def clock_rate
  @clock_rate
end

#mime_typeObject (readonly)

Returns the value of attribute mime_type.



259
260
261
# File 'lib/webrtc/parity_types.rb', line 259

def mime_type
  @mime_type
end

#rtcp_feedbackObject (readonly)

Returns the value of attribute rtcp_feedback.



259
260
261
# File 'lib/webrtc/parity_types.rb', line 259

def rtcp_feedback
  @rtcp_feedback
end

#sdp_fmtp_lineObject (readonly)

Returns the value of attribute sdp_fmtp_line.



259
260
261
# File 'lib/webrtc/parity_types.rb', line 259

def sdp_fmtp_line
  @sdp_fmtp_line
end