lib/rtsp/client.rb
def media_control_tracks
      tracks = []

      if @session_description.nil?
        tracks << ""
      else
        @session_description.media_sections.each do |media_section|
          media_section[:attributes].each do |a|
            tracks << "#{@content_base}#{a[:value]}" if a[:attribute] == "control"
          end
        end
      end

      tracks
    end
# Extracts the value of the "control" attribute from all media sections of
# the session description (SDP).  You have to call the +#describe+ method in
# order to get the session description info.
#
# @return [Array<String>] The tracks made up of the content base + control
#   track value.
# @see #describe
Extracts the value of the "control" attribute from all media sections of
the session description (SDP).  You have to call the +#describe+ method in
order to get the session description info.
Extracts the value of the " control " attribute from all media sections of the session description ( SDP ) . You have to call the + #describe + method in order to get the session description info .
def media_control_tracks
      tracks = []
      if @session_description.nil?
        tracks << ""
      else
        @session_description.media_sections.each do |media_section|
          media_section[:attributes].each do |a|
            tracks << "#{@content_base}#{a[:value]}" if a[:attribute] == "control"
          end
        end
      end
      tracks
    end
def media_control_tracks tracks = [ ] if @session_description . nil? tracks << "" else @session_description . media_sections . each do | media_section | media_section [ :attributes ] . each do | a | tracks << "#{@content_base}#{a[:value]}" if a [ :attribute ] == "control" end end end tracks end
Extracts the value of the "control" attribute from all media sections of
the session description (SDP).
Extracts the value of the " control " attribute from all media sections of the session description ( SDP ) .
The tracks made up of the content base + control track value.
The tracks made up of the content base + control track value .
Array<String>
see
None