libretime/legacy
nosbig 203c927554
feat: add flac support to Web player (#3128)
### Description

Added support for previewing FLAC files in the web interface, provided
in #509 by marmotte32 on Github in the comments for this issue.

I have tested this against a script-installed copy of 4.2.0, and FLAC
preview is working, although auto-play isn't. I haven't tested to
confirm if this behavior matches MP3 and OGG uploads.

**This is a new feature**:

_Do the changes in this PR implement a new feature?_

**I have updated the documentation to reflect these changes**:

No changes needed; this bug is a missing file format in preview, and it
requires no updates to the documentation.

### Testing Notes

**What I did:**

I installed a LibreTime 4.2.0 system using the default installation
script against a fully-updated, brand new Debian 11 system. I logged
into the web interface, uploaded some FLAC files, and attempted to
preview them. They failed to preview.

I then replaced the preview_jplayer.js file with the contents in this PR
and then refreshed the page. I was able to preview the FLAC files and
hear the results in my local browser audio output.

**How you can replicate my testing:**

Perform the same steps above, or replace the same file in the
libretime_legacy_1 docker image to see the same results.

### **Links**

Closes: #509

---------

Co-authored-by: Kyle Robbertze <kyle@paddatrapper.com>
2025-01-10 15:46:18 +00:00
..
application feat: add flac support to Web player (#3128) 2025-01-10 15:46:18 +00:00
build fix: intro/outro playlist unset was impossible (#3101) 2024-10-21 18:34:39 +01:00
install feat: add container setup 2022-09-14 11:09:52 +02:00
locale chore(legacy): translations update from Hosted Weblate (#3129) 2025-01-08 10:48:31 +00:00
public feat: add flac support to Web player (#3128) 2025-01-10 15:46:18 +00:00
tests fix: intro/outro playlist unset was impossible (#3101) 2024-10-21 18:34:39 +01:00
tools chore(deps): update dependency friendsofphp/php-cs-fixer to <3.64.1 (#3058) 2024-09-07 21:14:32 +02:00
.gitignore ci(legacy): catch syntax errors on older php versions 2022-08-24 12:18:40 +02:00
.php-cs-fixer.php chore(legacy): set format rules based on version 2022-09-12 14:15:50 +02:00
Makefile fix(legacy): remove composer superuser warning (#2515) 2023-04-19 16:15:15 +01:00
composer.json Merge branch '3.0.x' into main 2023-02-26 20:16:38 +01:00
composer.lock chore(deps): lock file maintenance (legacy/composer.json) (#3118) 2024-12-03 06:39:40 +00:00
packages.ini chore: list distribution releases by release date 2022-10-10 20:11:33 +02:00