joselo / sublimevideo_rails

Sublime Video Gem for Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sublime Video for Rails 3.1

Installation

Add to your Gemfile

gem 'sublimevideo_rails'

And run bundle to install the library.

bundle

Add the sublime.yml file to your config directory

# config/sublime.yml (change the site token)
SITE:
  TOKEN: ajezdvbh 

You can optionally use the following options to include HD videos

  source:         #MP4
  source_hd_mp4:  #HD MP4
  source_webm:    #webm 
  source_webm_hd  #HD WebM
  width:          #width of the video
  height:         #height of the video
  poster:         #image that will be displayed on the screen
  class:          #CSS class of the video player container

Usage

<%= sublimevideo_rails source: "http://domain.com/path/to/video.mp4", width:"400px" %>

#Watermark

#Coming soon

#Example app

http://lit-bastion-1612.herokuapp.com

Resources

http://sublimevideo.net

About

Sublime Video Gem for Rails


Languages

Language:Ruby 80.4%Language:HTML 15.4%Language:JavaScript 2.4%Language:CSS 1.8%