Feu-Secret / Tokenmagic

A Foundry VTT module that allows you to add animations and graphic effects to tokens, tiles, templates and drawings.
GNU General Public License v3.0
51 stars 36 forks source link

[BUG] When loaded first time, the VideoHelper called from the Sprite filter displays errors #228

Closed LeRatierBretonnien closed 1 year ago

LeRatierBretonnien commented 1 year ago

Module Version: latest, Foundry v10

foundry.js:4341 Uncaught (in promise) TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.
[Detected 1 package: tokenmagic]
    at VideoHelper.play (foundry.js:4341:23)
    at FilterSprite._playVideo (FilterSprite.js:252:33)
    at FilterSprite.assignTexture (FilterSprite.js:279:12)
    at new FilterSprite (FilterSprite.js:79:12)
    at _assignFilter (tokenmagic.js:764:18)
    at tokenmagic.js:921:11
    at Array.forEach (<anonymous>)
    at Object._updateFilters (tokenmagic.js:901:13)
    at Object.fn (tokenmagic.js:1761:11)
    at #call (foundry.js:724:20)
    at Hooks.callAll (foundry.js:681:17)
    at ClientDatabaseBackend.callback (foundry.js:12767:13)
    at foundry.js:12747:43
    at Array.map (<anonymous>)
    at ClientDatabaseBackend._handleUpdateEmbeddedDocuments (foundry.js:12747:33)
    at ClientDatabaseBackend._updateEmbeddedDocuments (foundry.js:12625:17)
    at async TokenDocument5e.updateDocuments (commons.js:6128:23)
    at async TokenDocument5e.update (commons.js:6225:23)
    at async PlaceableObject._TMFXsetFlag (PlaceableObjectProto.js:32:8)
    at async Object.addFilters (tokenmagic.js:407:5)
    at async PlaceableObject.TMFXaddFilters (PlaceableObjectProto.js:7:3)