iesde_player 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/iesde_player/video_helper.rb +12 -0
- data/lib/iesde_player/engine.rb +1 -1
- data/lib/iesde_player/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b58ccfdf9c655f6b32d8fdbfa14c26461cfdc508
|
4
|
+
data.tar.gz: 496440f8b18dccfd0153332f617a40c1f9c1a381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff29d2f77663d5a94b76869b2179ecb357dab46a228511911c6be143e5e2ca434aafb066d5675d439ea70fbcdd73ce1682408c31f09b0146d96fd9b1602130d1
|
7
|
+
data.tar.gz: 5fc379aad13a676f73e7a461000111f71d6873ce75cd8852abd7e51838dac2879dacccd0c990c3f1fa4740b2e23aae1ce000abed9f780c092edb82e1ee96bc1a
|
@@ -8,6 +8,18 @@ module IesdePlayer
|
|
8
8
|
content_tag(:div, nil, id: id)
|
9
9
|
end
|
10
10
|
|
11
|
+
def iesde_player_demo(url, parameters)
|
12
|
+
html_params = {
|
13
|
+
src: "http://web.videoaulasonline.com.br/player/player.swf",
|
14
|
+
flashvars: "autostart=#{parameters[:autostart] ? 'true' : 'false'}&streamer=#{url}",
|
15
|
+
allowfullscreen: "true",
|
16
|
+
allowscriptaccess: "always",
|
17
|
+
allownetworking: "all",
|
18
|
+
autostart: (parameters[:autostart] || false)
|
19
|
+
}
|
20
|
+
content_tag( :embed, nil, html_params.merge(parameters[:html] || {}))
|
21
|
+
end
|
22
|
+
|
11
23
|
private
|
12
24
|
|
13
25
|
def flashvars_cleaner(params)
|
data/lib/iesde_player/engine.rb
CHANGED
@@ -3,7 +3,7 @@ module IesdePlayer
|
|
3
3
|
isolate_namespace IesdePlayer
|
4
4
|
|
5
5
|
config.to_prepare do
|
6
|
-
::
|
6
|
+
::ActionController::Base.helper(VideoHelper)
|
7
7
|
end
|
8
8
|
config.assets.paths << File.expand_path("../../assets/flash", __FILE__)
|
9
9
|
config.assets.paths << File.expand_path("../../assets/images", __FILE__)
|
data/lib/iesde_player/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iesde_player
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Benevides
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|