raydash 2.0.2 → 2.0.3
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
- data/lib/raydash.rb +9 -2
- metadata +3 -3
|
@@ -6,10 +6,10 @@ 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")
|
|
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}\"});") + 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://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
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}\"});" ) + 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://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)
|
|
14
14
|
end
|
|
15
15
|
end
|
data/lib/raydash/version.rb
CHANGED
data/lib/raydash.rb
CHANGED
|
@@ -111,10 +111,17 @@ module Raydash
|
|
|
111
111
|
|
|
112
112
|
private
|
|
113
113
|
def self.getRequest(request)
|
|
114
|
-
|
|
114
|
+
http=Net::HTTP.new(RAYDASH_HTTP_SERVER,RAYDASH_HTTP_PORT)
|
|
115
|
+
http.read_timeout=20
|
|
116
|
+
http.open_timeout=20
|
|
117
|
+
return http.request_get(request)
|
|
115
118
|
end
|
|
116
119
|
def self.postRequest(path,request)
|
|
117
|
-
|
|
120
|
+
http=Net::HTTP.new(RAYDASH_HTTP_SERVER,RAYDASH_HTTP_PORT)
|
|
121
|
+
http.read_timeout=20
|
|
122
|
+
http.open_timeout=20
|
|
123
|
+
|
|
124
|
+
return http.request_post(path, request.to_query)
|
|
118
125
|
end
|
|
119
126
|
|
|
120
127
|
|
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:
|
|
4
|
+
hash: 9
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 2.0.
|
|
9
|
+
- 3
|
|
10
|
+
version: 2.0.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Gershon Bialer
|