raydash 2.2.3 → 2.2.4

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.
@@ -6,11 +6,11 @@ module RaydashHelper
6
6
 
7
7
  # This elements plays video/audio from the server
8
8
  def videostream(token, id,width="640",height="480",videoOff="0",autostart="1")
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:#{autostart},token:\"#{token}\",videoOff:\"#{videoOff}\"},{allowscriptaccess:'always',wmode:'transparent'},{});") + content_tag(:div, "Video stream not available", :id => id)
9
+ javascript_tag("swfobject.embedSWF(\"" + Raydash.getAssetUrl() + "/api/2/clientbox/1\", \"#{id}\",#{width},#{height},\"9.0.0\",\"http://api.raydash.com:8080/api/2/expressinstall/1\",{autostart:#{autostart},token:\"#{token}\",videoOff:\"#{videoOff}\"},{allowscriptaccess:'always',wmode:'transparent'},{});") + content_tag(:div, "Video stream not available", :id => id)
10
10
  end
11
11
  # This element sends video/audio to the server
12
12
  def videorecord(token, id,width="640",height="480",hideCamera="0",videoOff="0",microphoneOff="0",autostart="1")
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:#{autostart},token:\"#{token}\",videoOff:\"#{videoOff}\",microphoneOff:\"#{microphoneOff}\"},{allowscriptaccess:'always',wmode:'transparent'},{});" ) + content_tag(:div, "Video stream not available", :id => id)
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://api.raydash.com:8080/api/2/expressinstall/1\",{hideControls:1,hideCamera:\"#{hideCamera}\",autostart:#{autostart},token:\"#{token}\",videoOff:\"#{videoOff}\",microphoneOff:\"#{microphoneOff}\"},{allowscriptaccess:'always',wmode:'transparent'},{});" ) + 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
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 2
8
- - 3
9
- version: 2.2.3
8
+ - 4
9
+ version: 2.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gershon Bialer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-10-14 00:00:00 -05:00
17
+ date: 2011-11-16 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency