pds-dev-kit-web-test 0.2.27 → 0.2.28
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.
|
@@ -3,6 +3,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
6
17
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
19
|
};
|
|
@@ -104,21 +115,22 @@ function YouTubeIframe(_a) {
|
|
|
104
115
|
try {
|
|
105
116
|
// api 참고
|
|
106
117
|
// https://developers.google.com/youtube/player_parameters?hl=ko
|
|
118
|
+
var playerVars = {
|
|
119
|
+
cc_load_policy: 0,
|
|
120
|
+
playsinline: 1,
|
|
121
|
+
autoplay: 1,
|
|
122
|
+
controls: 0,
|
|
123
|
+
iv_load_policy: 3,
|
|
124
|
+
listType: 'playlist',
|
|
125
|
+
disablekb: 1,
|
|
126
|
+
playlist: videoId,
|
|
127
|
+
start: startSeconds
|
|
128
|
+
};
|
|
107
129
|
var player = new window.YT.Player(PLAYER_ID, {
|
|
108
130
|
videoId: videoId,
|
|
109
131
|
height: customHeight || 720,
|
|
110
132
|
width: customWidth || 1920,
|
|
111
|
-
playerVars: {
|
|
112
|
-
cc_load_policy: 0,
|
|
113
|
-
playsinline: 1,
|
|
114
|
-
autoplay: 1,
|
|
115
|
-
controls: 0,
|
|
116
|
-
iv_load_policy: 3,
|
|
117
|
-
listType: 'playlist',
|
|
118
|
-
disablekb: 1,
|
|
119
|
-
playlist: videoId,
|
|
120
|
-
start: startSeconds
|
|
121
|
-
},
|
|
133
|
+
playerVars: endSeconds ? __assign(__assign({}, playerVars), { end: endSeconds }) : playerVars,
|
|
122
134
|
events: {
|
|
123
135
|
onReady: onPlayerReady,
|
|
124
136
|
onStateChange: onPlayerStateChange,
|
package/package.json
CHANGED
package/release-note.md
CHANGED