Sha256: 74a03be4aef7ec57b2a16e389881e71a619716d992421f6f8aa52cbe50c3cc5b

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

class M3Uzi

  class Stream

    attr_accessor :path, :bandwidth, :program_id, :codecs, :resolution

    def attribute_string
      s = []
      s << "PROGRAM-ID=#{program_id || 1}"
      s << "BANDWIDTH=#{bandwidth}" if bandwidth
      s << "CODECS=\"#{codecs}\"" if codecs
      s << "RESOLUTION=#{resolution}" if resolution
      s.join(',')
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
m3uzi-0.2.1 lib/m3uzi/stream.rb
m3uzi-0.2.0 lib/m3uzi/stream.rb
m3uzi-0.1.6 lib/m3uzi/stream.rb
m3uzi-0.1.4 lib/m3uzi/stream.rb
m3uzi-0.1.3 lib/m3uzi/stream.rb