romo-av 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/assets/js/romo-av/dropdown_video.js +154 -176
- data/assets/js/romo-av/modal_video.js +160 -182
- data/assets/js/romo-av/video.js +172 -181
- data/lib/romo-av/version.rb +1 -1
- data/romo-av.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: f3f6ea009716a42cfdc4f31ae7406796fe54403e
|
4
|
-
metadata.gz: e616ef64cfed9fa16f7f46aefb663e6b9a19d0cb
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: 629e49294753636e90d9baaccef37bc678cda50ec3479ccd5a6cdf205ed4a4501e1ec0cda0bdc5f99b1802b5a645085f4672acb1597e39566ddd798425ea8e92
|
4
|
+
data.tar.gz: ffa3f1e19542e8365c4b0cadfe31252f1c2dc6d568fb07227f5efb4671e9fe626eeb4c5aeea9d89740e8549d58e5e907a9a0fd1f6a645130fb2395e471708444
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 3fe4aff5d6e234c20b5332b0a9fa0d17ad8d268a
|
7
|
+
data.tar.gz: ebcc868d01020a500c3dc6e8915d747e42d1ba05
|
@@ -1,303 +1,281 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
return new RomoDropdownVideo(element);
|
4
|
-
});
|
5
|
-
}
|
1
|
+
var RomoDropdownVideo = RomoComponent(function(elem) {
|
2
|
+
this.elem = elem;
|
6
3
|
|
7
|
-
|
8
|
-
this.
|
4
|
+
this.doInit();
|
5
|
+
this._bindElem();
|
9
6
|
|
10
|
-
this.
|
11
|
-
|
7
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:ready', [this]);
|
8
|
+
});
|
12
9
|
|
13
|
-
|
14
|
-
this.doBindVideo();
|
15
|
-
this.elem.on('dropdown:loadBodySuccess', $.proxy(function(e, data, dropdown) {
|
16
|
-
this.doBindVideo();
|
17
|
-
}, this));
|
10
|
+
// private
|
18
11
|
|
19
|
-
|
20
|
-
this.
|
21
|
-
|
12
|
+
RomoDropdownVideo.prototype._bindElem = function() {
|
13
|
+
this._bindDropdown();
|
14
|
+
this._bindVideo();
|
22
15
|
|
23
|
-
|
24
|
-
|
16
|
+
Romo.on(this.elem, 'romoDropdown:loadBodySuccess', Romo.proxy(function(e, data, romoDropdown) {
|
17
|
+
this._bindVideo();
|
18
|
+
}, this));
|
25
19
|
}
|
26
20
|
|
27
|
-
RomoDropdownVideo.prototype.
|
28
|
-
if (this.elem
|
29
|
-
this.elem
|
21
|
+
RomoDropdownVideo.prototype._bindDropdown = function() {
|
22
|
+
if (Romo.data(this.elem, 'romo-dropdown-clear-content') === undefined) {
|
23
|
+
Romo.setData(this.elem, 'romo-dropdown-clear-content', 'true');
|
30
24
|
}
|
31
25
|
|
32
|
-
|
26
|
+
this.romoDropdown = new RomoDropdown(this.elem);
|
33
27
|
|
34
|
-
|
35
|
-
this.dropdown.doPlacePopupElem();
|
36
|
-
}, this));
|
28
|
+
// dropdown/video interactions
|
37
29
|
|
38
|
-
this.elem
|
39
|
-
|
40
|
-
// mode, we don't care about them
|
41
|
-
setTimeout($.proxy(function() {
|
42
|
-
this.dropdown.doUnBindWindowBodyClick();
|
43
|
-
this.dropdown.doUnBindWindowBodyKeyUp();
|
44
|
-
this.dropdown.doUnBindElemKeyUp();
|
45
|
-
}, this), 1000);
|
46
|
-
}, this));
|
47
|
-
this.elem.on('dropdownVideo:video:exitFullscreen', $.proxy(function(e, videoObj, video, dropdownVideo) {
|
48
|
-
// wait 1 sec then turn on dropdown body elem events - since we are no longer
|
49
|
-
// in fullscreen mode, we need to care about them again
|
50
|
-
setTimeout($.proxy(function() {
|
51
|
-
this.dropdown.doBindWindowBodyClick();
|
52
|
-
this.dropdown.doBindWindowBodyKeyUp();
|
53
|
-
this.dropdown.doBindElemKeyUp();
|
54
|
-
}, this), 1000);
|
30
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:loadedmetadata', Romo.proxy(function(e, videoObj, romoVideo, romoDropdownVideo) {
|
31
|
+
this.romoDropdown.doPlacePopupElem();
|
55
32
|
}, this));
|
56
33
|
|
57
34
|
// event proxies
|
58
35
|
|
59
|
-
this.elem
|
60
|
-
this.elem
|
36
|
+
Romo.on(this.elem, 'romoDropdown:ready', Romo.proxy(function(e, romoDropdown) {
|
37
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:ready', [romoDropdown, this]);
|
61
38
|
}, this));
|
62
|
-
this.elem
|
63
|
-
this.elem
|
39
|
+
Romo.on(this.elem, 'romoDropdown:toggle', Romo.proxy(function(e, romoDropdown) {
|
40
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:toggle', [romoDropdown, this]);
|
64
41
|
}, this));
|
65
|
-
this.elem
|
66
|
-
this.elem
|
42
|
+
Romo.on(this.elem, 'romoDropdown:popupOpen', Romo.proxy(function(e, romoDropdown) {
|
43
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:popupOpen', [romoDropdown, this]);
|
67
44
|
}, this));
|
68
|
-
this.elem
|
69
|
-
this.elem
|
45
|
+
Romo.on(this.elem, 'romoDropdown:popupClose', Romo.proxy(function(e, romoDropdown) {
|
46
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:popupClose', [romoDropdown, this]);
|
70
47
|
}, this));
|
71
|
-
this.elem
|
72
|
-
this.elem
|
48
|
+
Romo.on(this.elem, 'romoDropdown:loadBodyStart', Romo.proxy(function(e, romoDropdown) {
|
49
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:loadBodyStart', [romoDropdown, this]);
|
73
50
|
}, this));
|
74
|
-
this.elem
|
75
|
-
this.elem
|
51
|
+
Romo.on(this.elem, 'romoDropdown:loadBodySuccess', Romo.proxy(function(e, data, romoDropdown) {
|
52
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:loadBodySuccess', [data, romoDropdown, this]);
|
76
53
|
}, this));
|
77
|
-
this.elem
|
78
|
-
this.elem
|
54
|
+
Romo.on(this.elem, 'romoDropdown:loadBodyError', Romo.proxy(function(e, xhr, romoDropdown) {
|
55
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:loadBodyError', [xhr, romoDropdown, this]);
|
79
56
|
}, this));
|
80
|
-
this.elem
|
81
|
-
this.elem
|
57
|
+
Romo.on(this.elem, 'romoDropdown:dismiss', Romo.proxy(function(e, romoDropdown) {
|
58
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoDropdown:dismiss', [romoDropdown, this]);
|
82
59
|
}, this));
|
83
60
|
}
|
84
61
|
|
85
|
-
RomoDropdownVideo.prototype.
|
86
|
-
|
62
|
+
RomoDropdownVideo.prototype._bindVideo = function() {
|
63
|
+
this.romoVideo = undefined;
|
87
64
|
|
88
|
-
this.
|
89
|
-
|
65
|
+
var videoElem = Romo.find(this.romoDropdown.popupElem, '[data-romo-video-auto="dropdownVideo"]')[0];
|
66
|
+
if (videoElem !== undefined) {
|
67
|
+
this._bindVideoElemEvents(videoElem);
|
68
|
+
this._bindDropdownVideoTriggerEvents();
|
90
69
|
|
91
|
-
|
70
|
+
this.romoVideo = new RomoVideo(videoElem);
|
71
|
+
}
|
92
72
|
}
|
93
73
|
|
94
|
-
// private
|
95
|
-
|
96
74
|
RomoDropdownVideo.prototype._bindVideoElemEvents = function(videoElem) {
|
97
75
|
// playback events
|
98
76
|
|
99
|
-
|
100
|
-
this.elem
|
77
|
+
Romo.on(videoElem, 'romoVideo:play', Romo.proxy(function(e, videoObj, romoVideo) {
|
78
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:play', [videoObj, romoVideo, this]);
|
101
79
|
}, this));
|
102
|
-
|
103
|
-
this.elem
|
80
|
+
Romo.on(videoElem, 'romoVideo:pause', Romo.proxy(function(e, videoObj, romoVideo) {
|
81
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:pause', [videoObj, romoVideo, this]);
|
104
82
|
}, this));
|
105
83
|
|
106
84
|
// state events
|
107
85
|
|
108
|
-
|
109
|
-
this.elem
|
86
|
+
Romo.on(videoElem, 'romoVideo:playing', Romo.proxy(function(e, videoObj, romoVideo) {
|
87
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:playing', [videoObj, romoVideo, this]);
|
110
88
|
}, this));
|
111
|
-
|
112
|
-
this.elem
|
89
|
+
Romo.on(videoElem, 'romoVideo:waiting', Romo.proxy(function(e, videoObj, romoVideo) {
|
90
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:waiting', [videoObj, romoVideo, this]);
|
113
91
|
}, this));
|
114
|
-
|
115
|
-
this.elem
|
92
|
+
Romo.on(videoElem, 'romoVideo:ended', Romo.proxy(function(e, videoObj, romoVideo) {
|
93
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:ended', [videoObj, romoVideo, this]);
|
116
94
|
}, this));
|
117
|
-
|
118
|
-
this.elem
|
95
|
+
Romo.on(videoElem, 'romoVideo:emptied', Romo.proxy(function(e, videoObj, romoVideo) {
|
96
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:emptied', [videoObj, romoVideo, this]);
|
119
97
|
}, this));
|
120
|
-
|
121
|
-
this.elem
|
98
|
+
Romo.on(videoElem, 'romoVideo:error', Romo.proxy(function(e, videoObj, romoVideo) {
|
99
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:error', [videoObj, romoVideo, this]);
|
122
100
|
}, this));
|
123
|
-
|
124
|
-
this.elem
|
101
|
+
Romo.on(videoElem, 'romoVideo:stalled', Romo.proxy(function(e, videoObj, romoVideo) {
|
102
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:stalled', [videoObj, romoVideo, this]);
|
125
103
|
}, this));
|
126
|
-
|
127
|
-
this.elem
|
104
|
+
Romo.on(videoElem, 'romoVideo:suspend', Romo.proxy(function(e, videoObj, romoVideo) {
|
105
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:suspend', [videoObj, romoVideo, this]);
|
128
106
|
}, this));
|
129
107
|
|
130
108
|
// status events
|
131
109
|
|
132
|
-
|
133
|
-
this.elem
|
110
|
+
Romo.on(videoElem, 'romoVideo:progress', Romo.proxy(function(e, videoObj, romoVideo) {
|
111
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:progress', [videoObj, romoVideo, this]);
|
134
112
|
}, this));
|
135
|
-
|
136
|
-
this.elem
|
113
|
+
Romo.on(videoElem, 'romoVideo:timeupdate', Romo.proxy(function(e, videoObj, romoVideo) {
|
114
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:timeupdate', [videoObj, romoVideo, this]);
|
137
115
|
}, this));
|
138
116
|
|
139
117
|
// settings events
|
140
118
|
|
141
|
-
|
142
|
-
this.elem
|
119
|
+
Romo.on(videoElem, 'romoVideo:volumechange', Romo.proxy(function(e, videoObj, romoVideo) {
|
120
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:volumechange', [videoObj, romoVideo, this]);
|
143
121
|
}, this));
|
144
|
-
|
145
|
-
this.elem
|
122
|
+
Romo.on(videoElem, 'romoVideo:durationchange', Romo.proxy(function(e, videoObj, romoVideo) {
|
123
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:durationchange', [videoObj, romoVideo, this]);
|
146
124
|
}, this));
|
147
|
-
|
148
|
-
this.elem
|
125
|
+
Romo.on(videoElem, 'romoVideo:ratechange', Romo.proxy(function(e, videoObj, romoVideo) {
|
126
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:ratechange', [videoObj, romoVideo, this]);
|
149
127
|
}, this));
|
150
128
|
|
151
129
|
// fullscreen events
|
152
130
|
|
153
|
-
|
154
|
-
this.elem
|
131
|
+
Romo.on(videoElem, 'romoVideo:enterFullscreen', Romo.proxy(function(e, videoObj, romoVideo) {
|
132
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:enterFullscreen', [videoObj, romoVideo, this]);
|
155
133
|
}, this));
|
156
|
-
|
157
|
-
this.elem
|
134
|
+
Romo.on(videoElem, 'romoVideo:exitFullscreen', Romo.proxy(function(e, videoObj, romoVideo) {
|
135
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:exitFullscreen', [videoObj, romoVideo, this]);
|
158
136
|
}, this));
|
159
|
-
|
160
|
-
this.elem
|
137
|
+
Romo.on(videoElem, 'romoVideo:fullscreenChange', Romo.proxy(function(e, videoObj, romoVideo) {
|
138
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:fullscreenChange', [videoObj, romoVideo, this]);
|
161
139
|
}, this));
|
162
140
|
|
163
141
|
// load events
|
164
142
|
|
165
|
-
|
166
|
-
this.elem
|
143
|
+
Romo.on(videoElem, 'romoVideo:loadstart', Romo.proxy(function(e, videoObj, romoVideo) {
|
144
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:loadstart', [videoObj, romoVideo, this]);
|
167
145
|
}, this));
|
168
|
-
|
169
|
-
this.elem
|
146
|
+
Romo.on(videoElem, 'romoVideo:loadedmetadata', Romo.proxy(function(e, videoObj, romoVideo) {
|
147
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:loadedmetadata', [videoObj, romoVideo, this]);
|
170
148
|
}, this));
|
171
|
-
|
172
|
-
this.elem
|
149
|
+
Romo.on(videoElem, 'romoVideo:loadeddata', Romo.proxy(function(e, videoObj, romoVideo) {
|
150
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:loadeddata', [videoObj, romoVideo, this]);
|
173
151
|
}, this));
|
174
|
-
|
175
|
-
this.elem
|
152
|
+
Romo.on(videoElem, 'romoVideo:canplay', Romo.proxy(function(e, videoObj, romoVideo) {
|
153
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:canplay', [videoObj, romoVideo, this]);
|
176
154
|
}, this));
|
177
|
-
|
178
|
-
this.elem
|
155
|
+
Romo.on(videoElem, 'romoVideo:canplaythrough', Romo.proxy(function(e, videoObj, romoVideo) {
|
156
|
+
Romo.trigger(this.elem, 'romoDropdownVideo:romoVideo:canplaythrough', [videoObj, romoVideo, this]);
|
179
157
|
}, this));
|
180
158
|
}
|
181
159
|
|
182
160
|
RomoDropdownVideo.prototype._bindDropdownVideoTriggerEvents = function() {
|
183
161
|
// playback triggers
|
184
162
|
|
185
|
-
this.elem
|
186
|
-
if (this.
|
187
|
-
this.
|
163
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerPlay', Romo.proxy(function(e) {
|
164
|
+
if (this.romoVideo != undefined) {
|
165
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerPlay', []);
|
188
166
|
}
|
189
167
|
}, this));
|
190
|
-
this.elem
|
191
|
-
if (this.
|
192
|
-
this.
|
168
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerPause', Romo.proxy(function(e) {
|
169
|
+
if (this.romoVideo != undefined) {
|
170
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerPause', []);
|
193
171
|
}
|
194
172
|
}, this));
|
195
|
-
this.elem
|
196
|
-
if (this.
|
197
|
-
this.
|
173
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerTogglePlay', Romo.proxy(function(e) {
|
174
|
+
if (this.romoVideo != undefined) {
|
175
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerTogglePlay', []);
|
198
176
|
}
|
199
177
|
}, this));
|
200
|
-
this.elem
|
201
|
-
if (this.
|
202
|
-
this.
|
178
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerSetPlaybackToTime', Romo.proxy(function(e, secondNum) {
|
179
|
+
if (this.romoVideo != undefined) {
|
180
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerSetPlaybackToTime', [secondNum]);
|
203
181
|
}
|
204
182
|
}, this));
|
205
|
-
this.elem
|
206
|
-
if (this.
|
207
|
-
this.
|
183
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerSetPlaybackToFrame', Romo.proxy(function(e, frameNum) {
|
184
|
+
if (this.romoVideo != undefined) {
|
185
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerSetPlaybackToFrame', [frameNum]);
|
208
186
|
}
|
209
187
|
}, this));
|
210
|
-
this.elem
|
211
|
-
if (this.
|
212
|
-
this.
|
188
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerSetPlaybackToPercent', Romo.proxy(function(e, percent) {
|
189
|
+
if (this.romoVideo != undefined) {
|
190
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerSetPlaybackToPercent', [percent]);
|
213
191
|
}
|
214
192
|
}, this));
|
215
|
-
this.elem
|
216
|
-
if (this.
|
217
|
-
this.
|
193
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModPlaybackByTime', Romo.proxy(function(e, secondsCount) {
|
194
|
+
if (this.romoVideo != undefined) {
|
195
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModPlaybackByTime', [secondsCount]);
|
218
196
|
}
|
219
197
|
}, this));
|
220
|
-
this.elem
|
221
|
-
if (this.
|
222
|
-
this.
|
198
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModPlaybackByFrames', Romo.proxy(function(e, frameCount) {
|
199
|
+
if (this.romoVideo != undefined) {
|
200
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModPlaybackByFrames', [frameCount]);
|
223
201
|
}
|
224
202
|
}, this));
|
225
|
-
this.elem
|
226
|
-
if (this.
|
227
|
-
this.
|
203
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModPlaybackByPercent', Romo.proxy(function(e, percent) {
|
204
|
+
if (this.romoVideo != undefined) {
|
205
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModPlaybackByPercent', [percent]);
|
228
206
|
}
|
229
207
|
}, this));
|
230
208
|
|
231
209
|
// settings triggers
|
232
210
|
|
233
|
-
this.elem
|
234
|
-
if (this.
|
235
|
-
this.
|
211
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerMute', Romo.proxy(function(e) {
|
212
|
+
if (this.romoVideo != undefined) {
|
213
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerMute', []);
|
236
214
|
}
|
237
215
|
}, this));
|
238
|
-
this.elem
|
239
|
-
if (this.
|
240
|
-
this.
|
216
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerUnmute', Romo.proxy(function(e) {
|
217
|
+
if (this.romoVideo != undefined) {
|
218
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerUnmute', []);
|
241
219
|
}
|
242
220
|
}, this));
|
243
|
-
this.elem
|
244
|
-
if (this.
|
245
|
-
this.
|
221
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerToggleMute', Romo.proxy(function(e) {
|
222
|
+
if (this.romoVideo != undefined) {
|
223
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerToggleMute', []);
|
246
224
|
}
|
247
225
|
}, this));
|
248
|
-
this.elem
|
249
|
-
if (this.
|
250
|
-
this.
|
226
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerSetVolumeToPercent', Romo.proxy(function(e, percent) {
|
227
|
+
if (this.romoVideo != undefined) {
|
228
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerSetVolumeToPercent', [percent]);
|
251
229
|
}
|
252
230
|
}, this));
|
253
|
-
this.elem
|
254
|
-
if (this.
|
255
|
-
this.
|
231
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModVolumeByPercent', Romo.proxy(function(e, percent) {
|
232
|
+
if (this.romoVideo != undefined) {
|
233
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModVolumeByPercent', [percent]);
|
256
234
|
}
|
257
235
|
}, this));
|
258
|
-
this.elem
|
259
|
-
if (this.
|
260
|
-
this.
|
236
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerSetPlaybackRate', Romo.proxy(function(e, rate) {
|
237
|
+
if (this.romoVideo != undefined) {
|
238
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerSetPlaybackRate', [rate]);
|
261
239
|
}
|
262
240
|
}, this));
|
263
|
-
this.elem
|
264
|
-
if (this.
|
265
|
-
this.
|
241
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModPlaybackRate', Romo.proxy(function(e, rate) {
|
242
|
+
if (this.romoVideo != undefined) {
|
243
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModPlaybackRate', [rate]);
|
266
244
|
}
|
267
245
|
}, this));
|
268
246
|
|
269
247
|
// fullscreen triggers
|
270
248
|
|
271
|
-
this.elem
|
272
|
-
if (this.
|
273
|
-
this.
|
249
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerEnterFullscreen', Romo.proxy(function(e) {
|
250
|
+
if (this.romoVideo != undefined) {
|
251
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerEnterFullscreen', []);
|
274
252
|
}
|
275
253
|
}, this));
|
276
|
-
this.elem
|
277
|
-
if (this.
|
278
|
-
this.
|
254
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerExitFullscreen', Romo.proxy(function(e) {
|
255
|
+
if (this.romoVideo != undefined) {
|
256
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerExitFullscreen', []);
|
279
257
|
}
|
280
258
|
}, this));
|
281
|
-
this.elem
|
282
|
-
if (this.
|
283
|
-
this.
|
259
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerToggleFullscreen', Romo.proxy(function(e) {
|
260
|
+
if (this.romoVideo != undefined) {
|
261
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerToggleFullscreen', []);
|
284
262
|
}
|
285
263
|
}, this));
|
286
264
|
|
287
265
|
// load triggers
|
288
266
|
|
289
|
-
this.elem
|
290
|
-
if (this.
|
291
|
-
this.
|
267
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerLoad', Romo.proxy(function(e) {
|
268
|
+
if (this.romoVideo != undefined) {
|
269
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerLoad', []);
|
292
270
|
}
|
293
271
|
}, this));
|
294
|
-
this.elem
|
295
|
-
if (this.
|
296
|
-
this.
|
272
|
+
Romo.on(this.elem, 'romoDropdownVideo:romoVideo:triggerModSource', Romo.proxy(function(e, source) {
|
273
|
+
if (this.romoVideo != undefined) {
|
274
|
+
Romo.trigger(this.romoVideo.elem, 'romoVideo:triggerModSource', [source]);
|
297
275
|
}
|
298
276
|
}, this));
|
299
277
|
}
|
300
278
|
|
301
|
-
|
302
|
-
|
303
|
-
|
279
|
+
// init
|
280
|
+
|
281
|
+
Romo.addElemsInitSelector('[data-romo-dropdownVideo-auto="true"]', RomoDropdownVideo);
|