bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten

Home Page:https://brooke.vibber.net/misc/ogv.js/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

S3 file duration problem

NumberI opened this issue · comments

done:
player.src = some_link_to_s3_audio

result:
player.duration is NaN,
player.seekable.length = 0

S3 response has header 'Content-Range', not 'Range'

How it can be solved?

To allow random access to a cross-site file, the CORS headers must be configured to allow:

  • request header 'Range'
  • response header 'Content-Range'

Without that, seeking is impossible and for files without an index, duration cannot be determined.

closing but see #591