lib/vlc-client/client/media_controls.rb
# Gets the length of the media being played
#
# @return [Integer] time in seconds
#
Gets the length of the media being played
Gets the length of the media being played
def length
        Integer(connection.write("get_length", false))
      rescue ArgumentError
        0
      end
def length Integer ( connection . write ( "get_length" , false ) ) rescue ArgumentError 0 end
Gets the length of the media being played
Gets the length of the media being played
time in seconds
time in seconds
Integer