player embeds mejs-controls.svg with document; patch mediaelement to use inlined iconSprite

This commit is contained in:
2024-11-12 02:50:31 +01:00
committed by Tilman Kranz
parent ef9a5b70d3
commit acd6a2f475
4 changed files with 130 additions and 17 deletions

View File

@ -0,0 +1,9 @@
--- a/src/js/utils/generate.js 2024-11-10 02:15:40.851022011 +0100
+++ b/src/js/utils/generate.js 2024-11-12 02:23:10.833246352 +0100
@@ -48,5 +48,5 @@
const iconHtml = icons.map(icon => {
return `<svg xmlns="http://www.w3.org/2000/svg" id="${playerId}-${icon}" class="${classPrefix}${icon}" aria-hidden="true" focusable="false">
- <use xlink:href="${iconSprite}#${icon}"></use>
+ <use xlink:href="#${icon}"></use>
</svg>
` })