discourse/app/assets/javascripts/pretty-text
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
..
context FIX: Composer preview not caching inline onebox. 2019-06-11 09:14:53 +08:00
emoji UX: Better emoji escaping for topic title (#7218) 2019-03-21 09:11:33 +01:00
engines FIX: Disable preloading audio + video when secure media enabled (#8922) 2020-02-11 11:49:58 +10:00
censored-words.js.es6 FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00
emoji.js.es6 DEV: Upgrade Ember to version 3.12.2 (#8753) 2020-02-05 14:51:00 +01:00
guid.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
inline-oneboxer.js.es6 FIX: Composer preview not caching inline onebox. 2019-06-11 09:14:53 +08:00
oneboxer-cache.js.es6 DEV: Remove pretty_text import hack & still work server-side (#8266) 2019-10-31 11:54:46 -05:00
oneboxer.js.es6 FIX: oneboxer.js infinitely retrying failed requests (#8414) 2019-11-26 15:49:58 +10:00
pretty-text.js.es6 FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00
sanitizer.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
upload-short-url.js.es6 FEATURE: Use upload:// short URL for videos and audio in composer (#8760) 2020-01-23 09:41:39 +10:00
white-lister.js.es6 FIX: Disable preloading audio + video when secure media enabled (#8922) 2020-02-11 11:49:58 +10:00
xss.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00