discourse/app/assets/javascripts/pretty-text/engines
Martin Brennan 7ff58f1787
FIX: Disable preloading audio + video when secure media enabled (#8922)
Meta topic: https://meta.discourse.org/t/secure-media-uploads-expire/140894

This fixes the issue where if secure media was enabled, audio
and video files would do an initial load using the presigned
URL for the media to get metadata information e.g. duration of
track/video. However this started the expiry countdown for the
URL, so when a user pressed play on the media after 15 seconds
the media would be expired and AWS would return a 403 error.

We do not preload media if secure media is enabled. Otherwise
we just set the preload type to "metadata" which is the browser
default anyway.
2020-02-11 11:49:58 +10:00
..
discourse-markdown DEV: Make image resize controls more resilient (#8867) 2020-02-06 17:19:24 +02:00
discourse-markdown-it.js.es6 FIX: Disable preloading audio + video when secure media enabled (#8922) 2020-02-11 11:49:58 +10:00