Class: WebRTC::RTCTrackEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(track:, receiver:, transceiver:, streams:) ⇒ RTCTrackEvent

Returns a new instance of RTCTrackEvent.



233
234
235
236
237
238
# File 'lib/webrtc/parity_types.rb', line 233

def initialize(track:, receiver:, transceiver:, streams:)
  @track = track
  @receiver = receiver
  @transceiver = transceiver
  @streams = streams
end

Instance Attribute Details

#receiverObject (readonly)

Returns the value of attribute receiver.



231
232
233
# File 'lib/webrtc/parity_types.rb', line 231

def receiver
  @receiver
end

#streamsObject (readonly)

Returns the value of attribute streams.



231
232
233
# File 'lib/webrtc/parity_types.rb', line 231

def streams
  @streams
end

#trackObject (readonly)

Returns the value of attribute track.



231
232
233
# File 'lib/webrtc/parity_types.rb', line 231

def track
  @track
end

#transceiverObject (readonly)

Returns the value of attribute transceiver.



231
232
233
# File 'lib/webrtc/parity_types.rb', line 231

def transceiver
  @transceiver
end