Class: WebRTC::RTCEncodedImage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data:, timestamp:, frame_type:, width:, height:) ⇒ RTCEncodedImage

Returns a new instance of RTCEncodedImage.



118
119
120
121
122
123
124
# File 'lib/webrtc/parity_types.rb', line 118

def initialize(data:, timestamp:, frame_type:, width:, height:)
  @data = data
  @timestamp = timestamp
  @frame_type = frame_type
  @width = width
  @height = height
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



116
117
118
# File 'lib/webrtc/parity_types.rb', line 116

def data
  @data
end

#frame_typeObject (readonly)

Returns the value of attribute frame_type.



116
117
118
# File 'lib/webrtc/parity_types.rb', line 116

def frame_type
  @frame_type
end

#heightObject (readonly)

Returns the value of attribute height.



116
117
118
# File 'lib/webrtc/parity_types.rb', line 116

def height
  @height
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



116
117
118
# File 'lib/webrtc/parity_types.rb', line 116

def timestamp
  @timestamp
end

#widthObject (readonly)

Returns the value of attribute width.



116
117
118
# File 'lib/webrtc/parity_types.rb', line 116

def width
  @width
end