lib/rtsp/client.rb
def teardown(track, additional_headers={})
      message = RTSP::Message.teardown(track).with_headers({
          cseq: @cseq, session: @session[:session_id] })
      message.add_headers additional_headers

      request(message) do
        @capturer.stop
        reset_state
      end
    end
# Sends the TEARDOWN request, then resets all state-related instance
# variables.
#
# @param [String] track The presentation or media track to teardown.
# @param [Hash] additional_headers
# @return [RTSP::Response]
# @see http://tools.ietf.org/html/rfc2326#page-37 RFC 2326, Section 10.7.
Sends the TEARDOWN request, then resets all state-related instance
variables.
Sends the TEARDOWN request then resets all state - related instance variables .
def teardown(track, additional_headers={})
      message = RTSP::Message.teardown(track).with_headers({
          cseq: @cseq, session: @session[:session_id] })
      message.add_headers additional_headers
      request(message) do
        @capturer.stop
        reset_state
      end
    end
def teardown ( track , additional_headers = { } ) message = RTSP :: Message . teardown ( track ) . with_headers ( { cseq : @cseq , session : @session [ :session_id ] } ) message . add_headers additional_headers request ( message ) do @capturer . stop reset_state end end
Sends the TEARDOWN request, then resets all state-related instance
variables.
Sends the TEARDOWN request then resets all state - related instance variables .
None
RTSP::Response
track
additional_headers
None
see
None