video-js-rails 3.2.3 → 3.2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -2
- data/app/helpers/video_js_helper.rb +1 -1
- data/lib/video-js-rails/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Video::Js::Rails
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|