lib/testcentricity_web/web_elements/media.rb
def all_tracks_data
      num_tracks = track_count
      return 0 if num_tracks.zero?

      all_data = []
      (1..num_tracks).each do |track|
        all_data.push( { track => track_data(track) })
      end
      all_data
    end
# Return properties of all text tracks of associated media
#
# @return [Array of Hash] properties of active text track (:kind, :label, :language, :mode)
# @example
#   all_track_info = media_player.all_tracks_data
#
Return properties of all text tracks of associated media
Return properties of all text tracks of associated media
def all_tracks_data
      num_tracks = track_count
      return 0 if num_tracks.zero?
      all_data = []
      (1..num_tracks).each do |track|
        all_data.push( { track => track_data(track) })
      end
      all_data
    end
def all_tracks_data num_tracks = track_count return 0 if num_tracks . zero? all_data = [ ] ( 1 .. num_tracks ) . each do | track | all_data . push ( { track => track_data ( track ) } ) end all_data end
Return properties of all text tracks of associated media
Return properties of all text tracks of associated media
properties of active text track (:kind, :label, :language, :mode)
properties of active text track ( : kind : label : language : mode )
Array of Hash
example
None