concerto_remote_video 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/concerto_remote_video/remote_video.js +3 -2
- data/app/views/contents/remote_video/_render_grid.html.erb +1 -1
- data/app/views/contents/remote_video/_tab_icon.html.erb +1 -1
- data/lib/concerto_remote_video/engine.rb +24 -1
- data/lib/concerto_remote_video/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51951080568495f881cf9e25b94d29b054f7e45e
|
4
|
+
data.tar.gz: 21b854f30a7a18ac8a9ad83c3a87c342f4739d26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b1d53445961119e9634e7eb34a377edb96f7bc88a0601c97121a5789d5e026fa11a09b6c5d72af065fdaf5ade148c0a1d25a72e47c531055561d5aa0fdd37c3
|
7
|
+
data.tar.gz: 2097ab4be8b26304cd1bc49595ac6abff91cd6045c3e7613dd556474c276e9a3afc7a339125fe294494c6ed41bbb097dae17f109a681388abdfdf89e361aa777
|
@@ -11,7 +11,7 @@ function initializeRemoteVideoHandlers() {
|
|
11
11
|
|
12
12
|
// Loading icon
|
13
13
|
if (video_id.length != 0) {
|
14
|
-
$(preview_div).empty().html('<i class=\"
|
14
|
+
$(preview_div).empty().html('<i class=\"fa fa-spinner fa-spin\"></i> searching...');
|
15
15
|
$('.remote-video-info').empty();
|
16
16
|
// Video preview request
|
17
17
|
$.ajax({
|
@@ -26,7 +26,8 @@ function initializeRemoteVideoHandlers() {
|
|
26
26
|
loadVideoPreview(data);
|
27
27
|
},
|
28
28
|
error: function(e) {
|
29
|
-
loadVideoPreview({video_available: false});
|
29
|
+
//loadVideoPreview({video_available: false});
|
30
|
+
$(preview_div).empty().text(e.responseText);
|
30
31
|
}
|
31
32
|
});
|
32
33
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if content.config['thumb_url'].blank? %>
|
2
2
|
<div class="grid-item with-shadow">
|
3
|
-
<i class="
|
3
|
+
<i class="fa fa-video-camera fa-4x"></i>
|
4
4
|
</div>
|
5
5
|
<% else %>
|
6
6
|
<div class="grid-item with-shadow" style="background-image:url(<%= content.config['thumb_url'] %>); background-size: cover; width: 60px; height: 60px;">
|
@@ -1 +1 @@
|
|
1
|
-
<i class="
|
1
|
+
<i class="fa fa-video-camera"></i>
|
@@ -11,7 +11,30 @@ module ConcertoRemoteVideo
|
|
11
11
|
@plugin_info ||= plugin_info_class.new do
|
12
12
|
add_route("concerto-remote-video", ConcertoRemoteVideo::Engine)
|
13
13
|
add_view_hook "frontend/ScreensController", :concerto_frontend_plugins, partial: "frontend/concerto_remote_video.html"
|
14
|
+
|
15
|
+
# Initialize configuration settings with a description and a default.
|
16
|
+
# Administrators can change the value through the Concerto dashboard.
|
17
|
+
add_config("vimeo_api_key", "",
|
18
|
+
:value_type => "string",
|
19
|
+
:category => "API Keys",
|
20
|
+
:seq_no => 999,
|
21
|
+
:description => "Vimeo API Access Token. This token is used for obtaining information about videos when adding video content. http://developer.vimeo.com/apps")
|
22
|
+
|
23
|
+
add_config("youtube_api_key", "",
|
24
|
+
:value_type => "string",
|
25
|
+
:category => "API Keys",
|
26
|
+
:seq_no => 999,
|
27
|
+
:description => "YouTube API Access Token. This token is used for obtaining information about videos when adding video content. http://console.developers.google.com")
|
28
|
+
|
29
|
+
# Some code to run at app boot
|
30
|
+
init do
|
31
|
+
require 'video_info'
|
32
|
+
keys = {}
|
33
|
+
keys[:vimeo] = ConcertoConfig["vimeo_api_key"] unless ConcertoConfig["vimeo_api_key"].blank?
|
34
|
+
keys[:youtube] = ConcertoConfig["youtube_api_key"] unless ConcertoConfig["youtube_api_key"].blank?
|
35
|
+
VideoInfo.provider_api_keys = keys
|
36
|
+
end
|
14
37
|
end
|
15
38
|
end
|
16
39
|
end
|
17
|
-
end
|
40
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concerto_remote_video
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Michalski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.2.3
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Remotely hosted video for Concerto 2
|