pkg/rbvimeo-0.1.0/lib/Video.rb
# Returns the code to embed the video
Returns the code to embed the video
Returns the code to embed the video
def embed width, height
      w = width.to_s
      h = height.to_s
      id = @id.to_s
      string = ''
      string += '<object type="application/x-shockwave-flash" width='
      string += w + '" height="' + h + '"'
      string += 'data="http://www.vimeo.com/moogaloop.swf?clip_id=' + id
      string += '&amp;server=www.vimeo.com&amp;fullscreen=0&amp;show_title=0'
      string += '&amp;show_byline=0&amp;showportrait=0&amp;color=00ADEF">'
      string += '<param name="quality" value="best" />'
      string += '<param name="allowfullscreen" value="false" />'
      string += '<param name="scale" value="showAll" />'
      string += '<param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id='
      string += id + '&amp;server=www.vimeo.com&amp;fullscreen=0&amp;'
      string += 'show_title=0&amp;show_byline=0&amp;showportrait=0&amp;color=00ADEF" /></object>'
      return string
    end
def embed width , height w = width . to_s h = height . to_s id = @id . to_s string = '' string += '<object type="application/x-shockwave-flash" width=' string += w + '" height="' + h + '"' string += 'data="http://www.vimeo.com/moogaloop.swf?clip_id=' + id string += '&amp;server=www.vimeo.com&amp;fullscreen=0&amp;show_title=0' string += '&amp;show_byline=0&amp;showportrait=0&amp;color=00ADEF">' string += '<param name="quality" value="best" />' string += '<param name="allowfullscreen" value="false" />' string += '<param name="scale" value="showAll" />' string += '<param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=' string += id + '&amp;server=www.vimeo.com&amp;fullscreen=0&amp;' string += 'show_title=0&amp;show_byline=0&amp;showportrait=0&amp;color=00ADEF" /></object>' return string end
Returns the code to embed the video
Returns the code to embed the video
width
height