raydash 2.0.9 → 2.1.0

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.
@@ -9,12 +9,12 @@ module RaydashHelper
9
9
  javascript_tag("swfobject.embedSWF(\"" + Raydash.getAssetUrl() + "/api/2/clientbox/1\", \"#{id}\",#{width},#{height},\"9.0.0\",\"http://www.adobe.com/products/flashplayer/download\",{autostart:1,token:\"#{token}\",videoOff:\"#{videoOff}\"},{allowscriptaccess:'always'},{});") + content_tag(:div, "Video stream not available", :id => id)
10
10
  end
11
11
  # This element sends video/audio to the server
12
- def videorecord(token, id,width="640",height="480",hideCamera="0",videoOff="0")
13
- javascript_tag("function setSize(width,height,id) {if(id==undefined){id=\"#{id}\"; }document.getElementById(id).width=width;document.getElementById(id).height=height;}\n" + "\nvar server_version=2;\nvar version=swfobject.getFlashPlayerVersion();if(version.major<10 || version.minor<3) {server_version=1;}" + "else {server_version=2;}\nswfobject.embedSWF(\"" + Raydash.getAssetUrl() + "/api/2/recordbox/\" + server_version , \"#{id}\",#{width},#{height},\"9.0.0\",\"http://www.adobe.com/products/flashplayer/download\",{hideControls:1,hideCamera:\"#{hideCamera}\",autostart:1,token:\"#{token}\",videoOff:\"#{videoOff}\"},{allowscriptaccess:'always'},{});" ) + content_tag(:div, "Video stream not available", :id => id)
12
+ def videorecord(token, id,width="640",height="480",hideCamera="0",videoOff="0",microphoneOff="0")
13
+ javascript_tag("function setSize(width,height,id) {if(id==undefined){id=\"#{id}\"; }document.getElementById(id).width=width;document.getElementById(id).height=height;}\n" + "\nvar server_version=2;\nvar version=swfobject.getFlashPlayerVersion();if(version.major<10 || version.minor<3) {server_version=1;}" + "else {server_version=2;}\nswfobject.embedSWF(\"" + Raydash.getAssetUrl() + "/api/2/recordbox/\" + server_version , \"#{id}\",#{width},#{height},\"9.0.0\",\"http://www.adobe.com/products/flashplayer/download\",{hideControls:1,hideCamera:\"#{hideCamera}\",autostart:1,token:\"#{token}\",videoOff:\"#{videoOff}\",microphoneOff:\"#{microphoneOff}\"},{allowscriptaccess:'always'},{});" ) + content_tag(:div, "Video stream not available", :id => id)
14
14
  end
15
15
  def video_selector(record_id,video_selector_id ="video_selector_id")
16
16
  javascript_tag(<<-CODE
17
- $(document).ready(function(){
17
+ jQuery(document).ready(function($){
18
18
  var camerasEl;
19
19
  var cameraInterval=setInterval(function(){
20
20
  camerasEl = document.getElementById("#{record_id}");
@@ -38,7 +38,7 @@ CODE
38
38
  end
39
39
  def audio_selector(record_id,audio_selector_id="audio_selector_id")
40
40
  javascript_tag(<<-CODE
41
- $(document).ready(function(){
41
+ jQuery(document).ready(function($){
42
42
  var audioEl;
43
43
  var audioInterval=setInterval(function() {
44
44
  audioEl = document.getElementById("#{record_id}");
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "2.0.9"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raydash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 2.0.9
10
+ version: 2.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gershon Bialer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-21 00:00:00 Z
18
+ date: 2011-06-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json