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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd860e85e57b9698c9de3aa0dca3b9ecc122fe2c
4
- data.tar.gz: 22b5e79948fdc06769cfebf44d79a18dbe938f88
3
+ metadata.gz: 51951080568495f881cf9e25b94d29b054f7e45e
4
+ data.tar.gz: 21b854f30a7a18ac8a9ad83c3a87c342f4739d26
5
5
  SHA512:
6
- metadata.gz: 50186f34dc3b82ff34d6b599294e4ce40685735d5826973eebe8e74f2bb502015d441565b149f04931433d9d2e0d808484aa05cd6f70c84e3ebe6ced4ff988d7
7
- data.tar.gz: 4709a047a36f8851c4d65db4e8cc97fd82bc211078e8c273405df82f8d6cec11f986cf405e52929186d728272f9bd2e9ea135e768128c44f17b4942e3305efe3
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=\"ficon-spinner icon-spin\"></i> searching...');
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="icon-facetime-video icon-4x"></i>
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="icon-facetime-video"></i>
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
@@ -1,3 +1,3 @@
1
1
  module ConcertoRemoteVideo
2
- VERSION = "0.6"
2
+ VERSION = "0.7"
3
3
  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.6'
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-05 00:00:00.000000000 Z
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.4.5
125
+ rubygems_version: 2.2.3
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Remotely hosted video for Concerto 2