diff --git a/src/core/textures/VideoBaseTexture.js b/src/core/textures/VideoBaseTexture.js index a3683b0..2953522 100644 --- a/src/core/textures/VideoBaseTexture.js +++ b/src/core/textures/VideoBaseTexture.js @@ -320,8 +320,9 @@ { if (!type) { - path = path.split('?').shift().toLowerCase(); - type = `video/${path.substr(path.lastIndexOf('.') + 1)}`; + const purePath = path.split('?').shift().toLowerCase(); + + type = `video/${purePath.substr(purePath.lastIndexOf('.') + 1)}`; } const source = document.createElement('source');