Class: Net::RTSP::Announce

Inherits:
RTSPGenericRequest show all
Defined in:
lib/raop/rtsp.rb

Instance Method Summary collapse

Methods inherited from RTSPGenericRequest

#exec

Constructor Details

#initialize(sac, key, iv) ⇒ Announce

Returns a new instance of Announce.



190
191
192
193
194
195
196
# File 'lib/raop/rtsp.rb', line 190

def initialize(sac, key, iv)
  super('ANNOUNCE')
  @key  = key
  @iv   = iv
  self['Content-Type'] = 'application/sdp'
  self['Apple-Challenge'] = sac.gsub(/[=\s]/, '')
end