Loaded/preloaded/autoplayed videos are uncached and time out if autoplay="false"
but missing preload="auto"
#3175
Labels
autoplay="false"
but missing preload="auto"
#3175
Description:
If a video is already loaded…
the video loads but is not cached.
an uncaught
Promise
is thrown (see error in the Console).https://github.com/aframevr/aframe/blob/68e6c26/src/core/a-assets.js#L162
have
mediaElementLoaded
return aPromise.resolve()
instead ofundefined
.Change this:
to this:
Notice the
hasAttribute
andgetAttribute
calls have been changed to instead use the<video>
element's (magical) getter properties. (I commented on this in Support<source>
s in<video>
s (usevideoEl.src
ina-assets
andcalculateVideoCacheHash
) #3173 (comment).)Promise.all
should be caught if anything throws./cc @machenmusik
0.7.0
/master
The text was updated successfully, but these errors were encountered: