flashcam-rails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Flashcam
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -17,6 +17,7 @@
17
17
  $.flashcam.FC_onShow = data.onShow;
18
18
  $.flashcam.FC_onConnect = data.onConnect;
19
19
  $.flashcam.FC_onDisconnect = data.onDisconnect;
20
+ $.flashcam.FC_onWebcamReady = data.FC_onWebcamReady;
20
21
 
21
22
  var newWidth = opts.width;
22
23
  var newHeight = opts.height;
@@ -69,3 +70,8 @@ function FC_onConnect() {
69
70
  function FC_onDisconnect() {
70
71
  $.flashcam.FC_onDisconnect();
71
72
  }
73
+
74
+ function FC_onWebcamReady() {
75
+ $.flashcam.FC_onWebcamReady()
76
+ }
77
+
@@ -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.FC_onError=data.onError;$.flashcam.FC_onShow=data.onShow;$.flashcam.FC_onConnect=data.onConnect;$.flashcam.FC_onDisconnect=data.onDisconnect;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={};$.flashcam.version=function(){return $("#"+data.id).get(0).FC_version()};$.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()}
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_onError=data.onError;$.flashcam.FC_onShow=data.onShow;$.flashcam.FC_onConnect=data.onConnect;$.flashcam.FC_onDisconnect=data.onDisconnect;$.flashcam.FC_onWebcamReady=data.FC_onWebcamReady;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={};$.flashcam.version=function(){return $("#"+data.id).get(0).FC_version()};$.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()}
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashcam-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: