Changes between Initial Version and Version 1 of GEC16Agenda/WiMAX-Tutorial/Streamload/03


Ignore:
Timestamp:
03/17/13 20:21:48 (11 years ago)
Author:
Fraida Fund
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC16Agenda/WiMAX-Tutorial/Streamload/03

    v1 v1  
     1== Writing an OMF Application Wrapper ==
     2
     3{{{
     4#!ruby
     5defApplication('streamload', 'streamload') do |app|
     6 
     7   app.path = "/root/streamload"
     8   app.version(1, 0, 0)
     9   app.shortDescription = "StreamLoad"
     10   app.description = "StreamLoad Scalable Video Downloader"
     11   
     12   app.defProperty("url", "URL of video source", "-u",
     13                  {:type => :string, :dynamic => false})
     14   app.defProperty("video", "Name of video", "-v",
     15                  {:type => :string, :dynamic => false})
     16   app.defProperty("window", "Download window for enhancement layers", "-w",
     17                  {:type => :integer, :dynamic => false})
     18   app.defProperty("streamload", "Use streamload to enhance video quality?", "-s",
     19                   {:type => :string, :dynamic => false})
     20
     21   app.defMeasurement('dl') do |mp|
     22     mp.defMetric('chunk',:long)
     23     mp.defMetric('layer',:long)
     24     mp.defMetric('rate',:long)
     25   end
     26   app.defMeasurement('conf') do |mp|
     27     mp.defMetric('key',:string)
     28     mp.defMetric('value',:string)
     29   end
     30   app.defMeasurement('play') do |mp|
     31     mp.defMetric('chunk',:long)
     32     mp.defMetric('layers',:long)
     33   end
     34
     35
     36end
     37}}}