def conversion_settings(videoobj)
      video = videoobj.video_stream
      scaling = [video['width'] / @max_width, video['height'] / @max_height]
      if scaling.max > 1.0
        video['width'] = (video['width'] / scaling.max).to_i
        video['height'] = (video['height'] / scaling.max).to_i
      end
      
      # TODO: fill these in correctly
      AvMap::Hash.new("air.video.ConversionRequest", {
        "itemId" => videoobj.location[1..-1],
        "audioStream"=>1,#videoobj.audio_stream['index'],
        "allowedBitrates"=> AirVideo::AvMap::BitrateList["512", "768", "1536", "1024", "384", "1280", "256"],
        "audioBoost"=>0.0,
        "cropRight"=>0,
        "cropLeft"=>0,
        "resolutionWidth"=>video['width'],
        "videoStream"=>0,#video['index'],
        "cropBottom"=>0,
        "cropTop"=>0,
        "quality"=>0.699999988079071,
        "subtitleInfo"=>nil,
        "offset"=>0.0,
        "resolutionHeight"=>video['height']
      })
    end
def conversion_settings(videoobj)
      video = videoobj.video_stream
      scaling = [video['width'] / @max_width, video['height'] / @max_height]
      if scaling.max > 1.0
        video['width'] = (video['width'] / scaling.max).to_i
        video['height'] = (video['height'] / scaling.max).to_i
      end
      
      # TODO: fill these in correctly
      AvMap::Hash.new("air.video.ConversionRequest", {
        "itemId" => videoobj.location[1..-1],
        "audioStream"=>1,#videoobj.audio_stream['index'],
        "allowedBitrates"=> AirVideo::AvMap::BitrateList["512", "768", "1536", "1024", "384", "1280", "256"],
        "audioBoost"=>0.0,
        "cropRight"=>0,
        "cropLeft"=>0,
        "resolutionWidth"=>video['width'],
        "videoStream"=>0,#video['index'],
        "cropBottom"=>0,
        "cropTop"=>0,
        "quality"=>0.699999988079071,
        "subtitleInfo"=>nil,
        "offset"=>0.0,
        "resolutionHeight"=>video['height']
      })
    end
private