php - Why is my mp3/ogg unseekable when served from Drupal 7 private files when it is seekable from public files -


i wrote own javascript html5 audio player works great when files sourced form drupal 7 public files, cannot seeked when served drupal 7 private files. logged in why occur?

i wasted deal of time debugging , rewriting code, discover public/vs private causing errors, figured out using seekable object returning no seekable timelines private src working fine public.

i have searched issue, , find many unrelated similar issues, none explain behavior.

drupal private files, authenticated php download scripts, route file request through php script. these scripts (almost) never support appropriate headers, such range header, required things resume download or requests parts of file seeking does.

usually best solution these problems not use php script output file, add's unnecessary load server. alternative solutions authenticated downloads include x-sendfile (if available or can installed), temporary randomly-named symbolic link in public directory, etc.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -