Method: FLV::FLVStream#audiodatarate
- Defined in:
- lib/flv/stream.rb
#audiodatarate ⇒ Object
327 328 329 330 331 332 |
# File 'lib/flv/stream.rb', line 327 def audiodatarate data_size = .inject(0) do |size, tag| size += tag.data_size end return data_size == 0 ? 0 : data_size / duration * 8 / 1000 # kBits/sec end |