concerto_remote_video 0.0.7 → 0.0.8
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.
- checksums.yaml +7 -0
- data/lib/concerto_remote_video/version.rb +1 -1
- data/public/frontend_js/contents/remote_video.js +22 -1
- metadata +20 -18
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 853f13456ebbc65d2e554c3a94f9b3ca55358afb
|
|
4
|
+
data.tar.gz: c15d66df4ba067f6db006597c77c127394c111af
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a5a55b689ff2e50359da8369b43731514b41667223bbc21f0715a6ec1fcdd4cff674e5f0aad3b39d3f38e6bba7642ed5355b74ad9f356967c6cad5dfb8141c85
|
|
7
|
+
data.tar.gz: 03e493969d286ad0f0b96c645537dee9adc5b52f32923c98072f2c425941481191428344fb6af34a92e8ff70268ee0dca963bff35484a7c657e41da4c7220c60
|
|
@@ -46,6 +46,27 @@ concerto.frontend.Content.RemoteVideo = function(data) {
|
|
|
46
46
|
*/
|
|
47
47
|
this.video_url = data['render_details']['path'];
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Extra parameters to include in the URL.
|
|
51
|
+
* @type {?string}
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
this.url_parms_ = (data.field['config'] ? data.field['config']['url_parms'] : null);
|
|
55
|
+
if (goog.isDefAndNotNull(this.url_parms_)) {
|
|
56
|
+
this.url_parms_ = this.url_parms_.trim();
|
|
57
|
+
if (goog.string.startsWith(this.url_parms_, '?'))
|
|
58
|
+
this.url_parms_ = goog.string.remove(this.url_parms_, '?');
|
|
59
|
+
if (goog.string.startsWith(this.url_parms_, '&'))
|
|
60
|
+
this.url_parms_ = goog.string.remove(this.url_parms_, '&');
|
|
61
|
+
if (goog.string.contains(this.video_url, '?')) {
|
|
62
|
+
this.url_parms_ = '&' + this.url_parms_;
|
|
63
|
+
} else {
|
|
64
|
+
this.url_parms_ = '?' + this.url_parms_;
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
this.url_parms_ = '';
|
|
68
|
+
}
|
|
69
|
+
|
|
49
70
|
/**
|
|
50
71
|
* Bump the duration of this content by 1 second.
|
|
51
72
|
* This attempts to account for 1 second of load time and should be
|
|
@@ -66,7 +87,7 @@ concerto.frontend.ContentTypeRegistry['RemoteVideo'] =
|
|
|
66
87
|
*/
|
|
67
88
|
concerto.frontend.Content.RemoteVideo.prototype.load_ = function() {
|
|
68
89
|
this.iframe = goog.dom.createElement('iframe');
|
|
69
|
-
this.iframe.src = this.video_url;
|
|
90
|
+
this.iframe.src = this.video_url + this.url_parms_;
|
|
70
91
|
this.iframe.frameborder = 0;
|
|
71
92
|
goog.style.setSize(this.iframe, '100%', '100%');
|
|
72
93
|
goog.style.setSize(this.div_, '100%', '100%');
|
metadata
CHANGED
|
@@ -1,39 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concerto_remote_video
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.0.8
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Brian Michalski
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
13
|
-
default_executable:
|
|
11
|
+
date: 2013-12-21 00:00:00.000000000 Z
|
|
14
12
|
dependencies:
|
|
15
13
|
- !ruby/object:Gem::Dependency
|
|
16
14
|
name: rails
|
|
17
|
-
requirement:
|
|
18
|
-
none: false
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
19
16
|
requirements:
|
|
20
17
|
- - ~>
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
19
|
version: '3.2'
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
|
-
version_requirements:
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.2'
|
|
26
27
|
- !ruby/object:Gem::Dependency
|
|
27
28
|
name: sqlite3
|
|
28
|
-
requirement:
|
|
29
|
-
none: false
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
|
-
version_requirements:
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
37
41
|
description: Adds support for remotely hosted videos, like YouTube or vimeo, in Concerto
|
|
38
42
|
2
|
|
39
43
|
email:
|
|
@@ -98,31 +102,29 @@ files:
|
|
|
98
102
|
- test/integration/navigation_test.rb
|
|
99
103
|
- test/test_helper.rb
|
|
100
104
|
- test/unit/concerto_remote_video/remote_video_test.rb
|
|
101
|
-
has_rdoc: true
|
|
102
105
|
homepage: https://github.com/concerto/concerto-remote-video
|
|
103
106
|
licenses:
|
|
104
107
|
- Apache 2.0
|
|
108
|
+
metadata: {}
|
|
105
109
|
post_install_message:
|
|
106
110
|
rdoc_options: []
|
|
107
111
|
require_paths:
|
|
108
112
|
- lib
|
|
109
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
|
-
none: false
|
|
111
114
|
requirements:
|
|
112
|
-
- -
|
|
115
|
+
- - '>='
|
|
113
116
|
- !ruby/object:Gem::Version
|
|
114
117
|
version: '0'
|
|
115
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
|
-
none: false
|
|
117
119
|
requirements:
|
|
118
|
-
- -
|
|
120
|
+
- - '>='
|
|
119
121
|
- !ruby/object:Gem::Version
|
|
120
122
|
version: '0'
|
|
121
123
|
requirements: []
|
|
122
124
|
rubyforge_project:
|
|
123
|
-
rubygems_version:
|
|
125
|
+
rubygems_version: 2.0.3
|
|
124
126
|
signing_key:
|
|
125
|
-
specification_version:
|
|
127
|
+
specification_version: 4
|
|
126
128
|
summary: Remotely hosted video for Concerto 2
|
|
127
129
|
test_files:
|
|
128
130
|
- test/concerto_remote_video_test.rb
|