raydash 2.2.4 → 2.2.5
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.
- data/lib/app/helpers/raydash_helper.rb +2 -2
- data/lib/raydash/version.rb +1 -1
- metadata +2 -2
@@ -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, "
|
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, "
|
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
|
data/lib/raydash/version.rb
CHANGED