video-js-rails 3.2.3 → 3.2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Video::Js::Rails
2
2
 
3
- TODO: Write a gem description
3
+ Video.js is a JavaScript and CSS library that makes it easier to work with and build on HTML5 video
4
+
4
5
 
5
6
  ## Installation
6
7
 
@@ -18,7 +19,9 @@ Or install it yourself as:
18
19
 
19
20
  ## Usage
20
21
 
21
- TODO: Write usage instructions here
22
+ Add something like this to your view:
23
+
24
+ <%= video_player src: { mp4: '/videos/some.mp4' }, controls: true %>
22
25
 
23
26
  ## Contributing
24
27
 
@@ -1,6 +1,6 @@
1
1
  module VideoJsHelper
2
2
  def video_player *args
3
- options = { width: 640, height: 360, class: 'video-js vjs-default-skin' }.merge args.extract_options!
3
+ options = { width: 640, height: 360, class: 'video-js vjs-default-skin', :'data-setup' => '{}' }.merge args.extract_options!
4
4
  src = options.delete(:src) || {}
5
5
 
6
6
  content_tag :video, options do
@@ -1,7 +1,7 @@
1
1
  module Video
2
2
  module Js
3
3
  module Rails
4
- VERSION = "3.2.3" # version should track the version of VideoJS library
4
+ VERSION = "3.2.3.1" # version should track the version of VideoJS library
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video-js-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3
4
+ version: 3.2.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: