wiki:GEC16Agenda/WiMAX-Tutorial/Streamload/03

Version 2 (modified by Fraida Fund, 7 years ago) (diff)

--

Writing an OMF Application Wrapper

Previous

defApplication('streamload', 'streamload') do |app|
 
   app.path = "/root/streamload" 
   app.version(1, 0, 0)
   app.shortDescription = "StreamLoad" 
   app.description = "StreamLoad Scalable Video Downloader" 
   
   app.defProperty("url", "URL of video source", "-u",
                  {:type => :string, :dynamic => false})
   app.defProperty("video", "Name of video", "-v",
                  {:type => :string, :dynamic => false})
   app.defProperty("window", "Download window for enhancement layers", "-w",
                  {:type => :integer, :dynamic => false})
   app.defProperty("streamload", "Use streamload to enhance video quality?", "-s",
                   {:type => :string, :dynamic => false})

   app.defMeasurement('dl') do |mp|
     mp.defMetric('chunk',:long)
     mp.defMetric('layer',:long)
     mp.defMetric('rate',:long)
   end
   app.defMeasurement('conf') do |mp|
     mp.defMetric('key',:string)
     mp.defMetric('value',:string)
   end
   app.defMeasurement('play') do |mp|
     mp.defMetric('chunk',:long)
     mp.defMetric('layers',:long)
   end


end

Next