class Argus::VideoData

Attributes

envelope[R]
frame[R]
socket[R]

Public Class Methods

new(socket) click to toggle source
  # File lib/argus/video_data.rb
5 def initialize(socket)
6   @socket = socket
7   @envelope = VideoDataEnvelope.new(@socket)
8   @frame = parse_frame
9 end

Public Instance Methods

parse_frame() click to toggle source
   # File lib/argus/video_data.rb
11 def parse_frame
12   socket.read(envelope.payload_size) if envelope
13 end