flashcam-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/lib/flashcam-rails/version.rb +1 -1
- data/vendor/assets/javascripts/flashcam.js +10 -3
- data/vendor/assets/javascripts/flashcam.min.js +1 -1
- data/vendor/assets/swfs/flashcam.swf +0 -0
- data/vendor/assets/xmls/config.xml.sample +4 -0
- metadata +10 -19
- data/vendor/assets/xmls/config.xml +0 -4
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 98a02b380697632c71e1dd4979515f7755d2a4ad
|
4
|
+
data.tar.gz: e5728f802c42a6a238aa2694c87aefdf6c30d494
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1a42c3a43cb5eaabe160e66a2abc6fd47fe74b3642ea816fe6b37235c6fcad60d6ce925abcad72a7b550390075acdf31e0ba9b82fc12e13674c47b8c064e6b08
|
7
|
+
data.tar.gz: c447986b42ffb3a35268ec8504a79791c374f82c03bf9df8d40f477cfd20e35e1b5a9e9bb155b51104b08c76654670d3ec48b82d7887baf07e13e3c52809c73c
|
data/.gitignore
CHANGED
@@ -9,15 +9,17 @@
|
|
9
9
|
// add flash to div
|
10
10
|
opts.id = this.id; // add id of plugin to the options structure
|
11
11
|
data = opts; // pass options to jquery internal data field to make them available to the outside world
|
12
|
+
data.path = decodeURIComponent(data.path); // convert URI back to normal string
|
12
13
|
|
13
14
|
$('#'+opts.id).html(opts.noFlashFound); // inject no flash found message
|
14
15
|
|
15
16
|
// forward incoming flash movie calls to outgoing functions
|
16
|
-
$.flashcam.FC_onError = data.onError;
|
17
|
-
$.flashcam.FC_onShow = data.onShow;
|
18
17
|
$.flashcam.FC_onConnect = data.onConnect;
|
19
18
|
$.flashcam.FC_onDisconnect = data.onDisconnect;
|
19
|
+
$.flashcam.FC_onError = data.onError;
|
20
|
+
$.flashcam.FC_onShow = data.onShow;
|
20
21
|
$.flashcam.FC_onWebcamReady = data.onWebcamReady;
|
22
|
+
$.flashcam.FC_onTimeLeftChange = data.onTimeLeftChange;
|
21
23
|
|
22
24
|
var newWidth = opts.width;
|
23
25
|
var newHeight = opts.height;
|
@@ -33,7 +35,7 @@
|
|
33
35
|
opts[key] = encodeURIComponent(opts[key]);
|
34
36
|
};
|
35
37
|
|
36
|
-
swfobject.embedSWF('
|
38
|
+
swfobject.embedSWF(data.path + 'flashcam.swf', opts.id, newWidth, newHeight, '11.4', false, opts, params);
|
37
39
|
});
|
38
40
|
};
|
39
41
|
|
@@ -65,6 +67,7 @@
|
|
65
67
|
$.fn.flashcam.defaults = {
|
66
68
|
width:320,
|
67
69
|
height:240,
|
70
|
+
path:'',
|
68
71
|
noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'
|
69
72
|
};
|
70
73
|
})(jQuery);
|
@@ -90,3 +93,7 @@ function FC_onDisconnect() {
|
|
90
93
|
function FC_onWebcamReady() {
|
91
94
|
$.flashcam.FC_onWebcamReady()
|
92
95
|
}
|
96
|
+
|
97
|
+
function FC_onTimeLeftChange() {
|
98
|
+
$.flashcam.FC_onTimeLeftChange();
|
99
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
(function($){$.fn.flashcam=function(options){var opts=$.extend({},$.fn.flashcam.defaults,options);return this.each(function(){opts.id=this.id;data=opts;$("#"+opts.id).html(opts.noFlashFound);$.flashcam.
|
1
|
+
(function($){$.fn.flashcam=function(options){var opts=$.extend({},$.fn.flashcam.defaults,options);return this.each(function(){opts.id=this.id;data=opts;$("#"+opts.id).html(opts.noFlashFound);$.flashcam.FC_onConnect=data.onConnect;$.flashcam.FC_onDisconnect=data.onDisconnect;$.flashcam.FC_onError=data.onError;$.flashcam.FC_onShow=data.onShow;$.flashcam.FC_onWebcamReady=data.onWebcamReady;$.flashcam.FC_onTimeLeftChange=data.onTimeLeftChange;var newWidth=opts.width;var newHeight=opts.height;var params={menu:"false",wmode:"direct"};for(var key in opts){opts[key]=encodeURIComponent(opts[key])}swfobject.embedSWF("/assets/flashcam.swf",opts.id,newWidth,newHeight,"11.4",false,opts,params)})};$.flashcam={};function FC_display(){return $("#"+data.id).get(0)}$.flashcam.version=function(){return FC_display().FC_version()};$.flashcam.recordStart=function(){FC_display().FC_recordStart()};$.flashcam.recordStop=function(){FC_display().FC_recordStop()};$.flashcam.recordPlayback=function(){FC_display().FC_recordPlayback()};$.fn.flashcam.defaults={width:320,height:240,noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'}})(jQuery);function FC_onError(errorId,errorMsg){$.flashcam.FC_onError(errorId,errorMsg)}function FC_onShow(){$.flashcam.FC_onShow()}function FC_onConnect(){$.flashcam.FC_onConnect()}function FC_onDisconnect(){$.flashcam.FC_onDisconnect()}function FC_onWebcamReady(){$.flashcam.FC_onWebcamReady()}function FC_onTimeLeftChange(){$.flashcam.FC_onTimeLeftChange()}
|
Binary file
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flashcam-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Eduardo Maia
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: railties
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>'
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>'
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -79,30 +72,28 @@ files:
|
|
79
72
|
- vendor/assets/javascripts/flashcam.min.js
|
80
73
|
- vendor/assets/javascripts/swfobject.js
|
81
74
|
- vendor/assets/swfs/flashcam.swf
|
82
|
-
- vendor/assets/xmls/config.xml
|
75
|
+
- vendor/assets/xmls/config.xml.sample
|
83
76
|
homepage: https://github.com/zigotto/flashcam-rails
|
84
77
|
licenses: []
|
78
|
+
metadata: {}
|
85
79
|
post_install_message:
|
86
80
|
rdoc_options: []
|
87
81
|
require_paths:
|
88
82
|
- lib
|
89
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
84
|
requirements:
|
92
|
-
- -
|
85
|
+
- - '>='
|
93
86
|
- !ruby/object:Gem::Version
|
94
87
|
version: '0'
|
95
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
89
|
requirements:
|
98
|
-
- -
|
90
|
+
- - '>='
|
99
91
|
- !ruby/object:Gem::Version
|
100
92
|
version: '0'
|
101
93
|
requirements: []
|
102
94
|
rubyforge_project:
|
103
|
-
rubygems_version:
|
95
|
+
rubygems_version: 2.0.3
|
104
96
|
signing_key:
|
105
|
-
specification_version:
|
97
|
+
specification_version: 4
|
106
98
|
summary: Flashcam, tastefully bundled for the Rails 3.1 asset pipeline. Sweet!
|
107
99
|
test_files: []
|
108
|
-
has_rdoc:
|