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 35fc852 commit 0564f65Copy full SHA for 0564f65
src/PlayerScripts.js
@@ -99,6 +99,9 @@ export const MAIN_SCRIPT = (
99
const list = typeof playList === 'string' ? playList : '';
100
const listType = typeof playList === 'string' ? 'playlist' : '';
101
const contentScale_s = typeof contentScale === 'number' ? contentScale : 1.0;
102
+ const playlist = Array.isArray(playList)
103
+ ? `playlist: "${playList.join(',')}",`
104
+ : '';
105
106
// scale will either be "initial-scale=1.0"
107
let scale = `initial-scale=${contentScale_s}`;
@@ -153,6 +156,7 @@ export const MAIN_SCRIPT = (
153
156
height: '1000',
154
157
videoId: '${videoId_s}',
155
158
playerVars: {
159
+ ${playlist}
160
end: ${end},
161
rel: ${rel_s},
162
playsinline: 1,
0 commit comments