We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf9ef30 commit dbfbbe3Copy full SHA for dbfbbe3
src/quality/quality.js
@@ -198,7 +198,8 @@ Object.assign(MediaElementPlayer.prototype, {
198
currentQuality = defaultValue;
199
200
// Get initial quality
201
- const generateId = Math.floor(Math.random() * 100);
+ const generateId = Date.now() + '.' + Math.floor(Math.random() * 100);
202
+
203
const iconHtml = `<svg xmlns="http://www.w3.org/2000/svg" id="${generateId}" class="${t.options.classPrefix}" aria-hidden="true" focusable="false">
204
<use xlink:href="${t.options.iconPathQuality}#default-icon"></use></svg>`;
205
player.qualitiesContainer = document.createElement('div');
0 commit comments