Class Viddler::Video
In: lib/viddler/video.rb
Parent: Object

This class wraps Viddler‘s video‘s information.

Methods

Attributes

author  [RW] 
comment_count  [RW] 
comment_list  [RW] 
description  [RW] 
id  [RW] 
length_seconds  [RW] 
permissions  [RW] 
tags  [RW] 
thumbnail_url  [RW] 
title  [RW] 
update_time  [RW] 
upload_time  [RW] 
url  [RW] 
view_count  [RW] 

Public Instance methods

Returns proper HTML code for embedding

options hash could contain:

  • player_type: The type of player to embed, either "simple" or "player" (default is "player");
  • width: The width of the player (default is 437);
  • height: The height of the player (default is 370);
  • autoplay: Whether or not to autoplay the video, either "t" or "f" (default is "f");
  • playAll: Set to "true" to enable play all player (requires player_type to be "player");

Any additional options passed to the method will be added as flashvars

Example:

 @video.embed_code(:player_type => 'simple', :width => 300, :height => 300, autoplay => 't')

Returns embed code for auto playing simple player with 300px width and height

[Validate]