bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten
https://brooke.vibber.net/misc/ogv.js/demo/
Other
1.2k stars 101 forks source link

S3 file duration problem #585

Closed NumberI closed 3 years ago

NumberI commented 3 years ago

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?

bvibber commented 3 years ago

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

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

bvibber commented 3 years ago

closing but see https://github.com/brion/ogv.js/issues/591