raydash 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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://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)
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, "Flash appears not to be installed, please download Flash player from http://www.adobe.com", :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://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)
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, "Flash appears not to be installed, please download Flash player from http://www.adobe.com", :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.4"
2
+ VERSION = "2.2.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 2
8
- - 4
9
- version: 2.2.4
8
+ - 5
9
+ version: 2.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gershon Bialer