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 ad78661 commit f3d115eCopy full SHA for f3d115e
src/PlayerScripts.js
@@ -48,10 +48,16 @@ true;
48
49
loadPlaylist: (playList, startIndex, play) => {
50
const index = startIndex || 0;
51
- const playlistJson = JSON.stringify(playList);
52
const func = play ? 'loadPlaylist' : 'cuePlaylist';
53
54
- return `player.${func}({playlist: ${playlistJson}, index: ${index}); true;`;
+ const list = typeof playList === 'string' ? `"${playList}"` : 'undefined';
+ const listType =
55
+ typeof playList === 'string' ? `"${playlist}"` : 'undefined';
56
+ const playlist = Array.isArray(playList)
57
+ ? `"${playList.join(',')}"`
58
+ : 'undefined';
59
+
60
+ return `player.${func}({listType: ${listType}, list: ${list}, playlist: ${playlist}, index: ${index}}); true;`;
61
},
62
63
loadVideoById: (videoId, play) => {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments