flowplayer-rails 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67afeffd58a4e33b61b6d0ea9d50bf8308d6806a
4
- data.tar.gz: dbfac4381b75e4c7290d5eebae1c8c0ad82a37b9
3
+ metadata.gz: 009c741546173d821ee8711d721c938d6fbf8f2c
4
+ data.tar.gz: e0ab102bd4674610c1f09980bc7e9875ed8dafe1
5
5
  SHA512:
6
- metadata.gz: 21683cd37998590e900571519b867885ceebfc927f512f5498a82df84e259c7c8a5f6b577657a5319f75418b465b1f853f00895e2c32daed0c3fd80a1dae46e5
7
- data.tar.gz: f76a0a6580dd45589521a3a3d79430789ecc1b9d80f6b706a53beabbb5f68d140c652d7ce538293f00468ac295f5def6f1bb1d2b4afb53d52abef5672e426098
6
+ metadata.gz: 2991e7300463149c33af158292f8b53be3238ee7b444315abdccf0e4e8ece6f821e4e526717a94ba224c825ccb081a8bafeba7a2b1edfeb5aa8888f01a12cd64
7
+ data.tar.gz: 3b9acfe265c7e61cc94b89b885203d46fe23e63b56de40d89715ca119394f145166985ed4fee8ca6e8b22930bae65da800cdd9db548c8e738b9ab6fec6ebd8f6
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Flowplayer::Rails
2
2
 
3
- TODO: Write a gem description
3
+ This gem provides flowplayer flash player for your Rails application.
4
+
5
+ http://flowplayer.org/
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,7 +20,35 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ <a id='video' href="video_url.mp4" style='display:block; width:480px; height:400px;'>
24
+
25
+ For JQuery
26
+
27
+ <%= flowplayer_for :video, asset_path('flowplayer-3.2.18.swf'), 'jquery' do |player| %>
28
+ <% player.clip autoPlay: true, autoBuffering: true, scaling: "fit" %>
29
+ <% player.play replayLabel: nil, opacity: 0 %>
30
+ <% player.canvas backgroundColor: "transparent", backgroundGradient: "none" %>
31
+ <% player.plugins controls: { backgroundColor: "rgba(239, 239, 239, 0.1)", backgroundGradient: "none", all: false, scrubber: true, play: true, mute: true, fullscreen: true, autoHide: "always", height: "20px"} %>
32
+ <% player.onLoad do %>
33
+ <% 'this.unmute();' %>
34
+ <% end %>
35
+ <% end %>
36
+
37
+ For Prototype
38
+
39
+ <%= flowplayer_for :video, asset_path('flowplayer-3.2.18.swf'), 'prototype' do |player| %>
40
+ <% player.clip autoPlay: true, autoBuffering: true, scaling: "fit" %>
41
+ <% player.play replayLabel: nil, opacity: 0 %>
42
+ <% player.canvas backgroundColor: "transparent", backgroundGradient: "none" %>
43
+ <% player.plugins controls: { backgroundColor: "rgba(239, 239, 239, 0.1)", backgroundGradient: "none", all: false, scrubber: true, play: true, mute: true, fullscreen: true, autoHide: "always", height: "20px"} %>
44
+ <% player.onLoad do %>
45
+ <% 'this.unmute();' %>
46
+ <% end %>
47
+ <% end %>
48
+
49
+ ## Configs are the same ones here
50
+
51
+ http://flowplayer.org/documentation/api/index.html
22
52
 
23
53
  ## Contributing
24
54
 
@@ -1,6 +1,14 @@
1
1
  module Flowplayer
2
2
  module Rails
3
3
  class Engine < ::Rails::Engine
4
+ config.to_prepare do
5
+ ApplicationController.helper(Flowplayer::Rails::Helper)
6
+ end
7
+
8
+ initializer "flowplayer.assets.precompile" do |app|
9
+ app.config.assets.precompile += %w(flowplayer.min.js)
10
+ app.config.assets.precompile += %w(*.swf)
11
+ end
4
12
  end
5
13
  end
6
14
  end
@@ -12,12 +12,6 @@ module Flowplayer
12
12
  config.action_view.javascript_expansions[:defaults] |= defaults
13
13
  end
14
14
  end
15
-
16
- initializer "flowplayer.configure_rails_initialization" do
17
- ActionController::Base.instance_eval do
18
- helper Flowplayer::Rails::Helper
19
- end
20
- end
21
15
  end
22
16
  end
23
17
  end
@@ -1,6 +1,6 @@
1
1
  module Flowplayer
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  FLOWPLAYER_VERSION = "3.2.13"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowplayer-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryancheung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -138,12 +138,8 @@ files:
138
138
  - spec/flowplayer_spec.rb
139
139
  - spec/rails_helper_spec.rb
140
140
  - spec/spec_helper.rb
141
- - vendor/.DS_Store
142
- - vendor/assets/.DS_Store
143
- - vendor/assets/flash/.DS_Store
144
141
  - vendor/assets/flash/flowplayer-3.2.18.swf
145
142
  - vendor/assets/flash/flowplayer.controls-3.2.16.swf
146
- - vendor/assets/javascripts/.DS_Store
147
143
  - vendor/assets/javascripts/flowplayer.min.js
148
144
  homepage: https://github.com/ryancheung/flowplayer-rails
149
145
  licenses:
Binary file
Binary file