We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f8421 commit 9fb9d41Copy full SHA for 9fb9d41
src/PlayerScripts.js
@@ -95,6 +95,9 @@ export const MAIN_SCRIPT = (
95
const list = typeof playList === 'string' ? playList : '';
96
const listType = typeof playList === 'string' ? 'playlist' : '';
97
const contentScale_s = typeof contentScale === 'number' ? contentScale : 1.0;
98
+ const playlist = Array.isArray(playList)
99
+ ? `playlist: "${playList.join(',')}",`
100
+ : '';
101
102
// scale will either be "initial-scale=1.0"
103
let scale = `initial-scale=${contentScale_s}`;
@@ -149,6 +152,7 @@ export const MAIN_SCRIPT = (
149
152
height: '1000',
150
153
videoId: '${videoId_s}',
151
154
playerVars: {
155
+ ${playlist}
156
end: ${end},
157
rel: ${rel_s},
158
playsinline: 1,
0 commit comments