Closed mysliwiec-tech closed 5 years ago
Hey @mysliwiec-tech - If the content is encrypted, it doesn't make sense to me to guess the underlying content type. If you add the key, the browser can correctly sniff the type:
Additionally, you can add the extension and the gateway will ignore it... this may help an older browser:
Seems like my previous investigation was wrong - previously I made wrong assumption. Seeking is enabled by sending 206 HTTP code and Content-Range
header response. Do you think it will be enabled any time in the future for a gateway?
Source eg.:
https://github.com/jalik/jalik-ufs/issues/92
https://sitefinitydevelopment.com/blog/here-is-how-to-make-chrome-seek-through-your-audio-files-in-sitefinity.html
Closing as it was identified as the problem with a gateway not supporting Range
request headers. Raised a Feature request #843
Describe the bug When my web app is downloading an mp3 file from a Textile Gateway it cannot determine it's length (in seconds) because the
Content-Type
is empty as opposed toaudio/mpeg
. All it needs to be working is the correctContent-Type
header.To Reproduce
Content-Type
Expected behavior I would expect that file mime/content-type will be set according to what is in the meta of the encrypted file because it is recognized properly when it's being added to a thread (correct
/meta
):Screenshots When file is being served from a gateway, it is being served as
Content-Type:
(just an "empty" Content-Type)Tray app (please complete the following information):
Additional context The sampotts/plyr library and even the standard HTML5 audio file player (build into a browser) cannot determine the *.mp3 duration and other properties of a file. The HTML that is running the audio player. Because a file is served with a wrong
Content-Type
user cannot seek through a file. The html file that is serving a player: index.html.txt