Skip to content

[FEATURE] Update Mediaplayer file detection#1892

Open
fschoelzel wants to merge 9 commits intokitodo:mainfrom
fschoelzel:1879-update-mediaplayer-file-detection
Open

[FEATURE] Update Mediaplayer file detection#1892
fschoelzel wants to merge 9 commits intokitodo:mainfrom
fschoelzel:1879-update-mediaplayer-file-detection

Conversation

@fschoelzel
Copy link
Copy Markdown
Contributor

closes #1879

  • This Feature updates the MediaplayerController to use useGroupsAudio for Audio Files (instead mixing it in the useGroupsVideo as before the removement of the Audioplayer plugin see: [MAINTENANCE] Remove jPlayer and dlf_audioplayer Plugin #1878)
  • Further refactoring. f.e. the use of variable media instead of video to highlight the dual use and for better understanding
  • add MediaPlayerService Class for the distinction between Audio and Video Files. This is used in MediaPlayerController and in two new ExpressionLanguage Functions to set the variables to load the related Templates
  • add a MediaTypeFunctionProvider with new isAudio and isVideo ExpressionLanguage Functions can be used in typoscript configuration
  • This Fixes decision for multivolume_work Documents by reading Information from MetsDocument PHYSICAL Structure based on the Filegroup and useGroup Configuration, instead of the metadata (LOGICAL Structure)
  • fixed AudioVideoTool and related JavaScript
  • add Documentation
  • removed wavesurfer.js from node dependencies, because it is not used in the codebase

- use Audio and Video Use Groups
- refactor `MediaplayerController` using media instead of video
…and TypeProvider

- add ExpressionLanguage functions to to set typoscript variables on pageload to determine physical type
…class

- update data-attribute to more precise naming
@fschoelzel
Copy link
Copy Markdown
Contributor Author

I don't have this Error running the unit test loacally with php82.

@fschoelzel fschoelzel marked this pull request as draft March 26, 2026 16:18
@fschoelzel fschoelzel marked this pull request as ready for review March 26, 2026 17:49
@fschoelzel fschoelzel self-assigned this Mar 27, 2026
@fschoelzel fschoelzel added the ↷ feature A new feature or enhancement. label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

↷ feature A new feature or enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Update Mediaplayer File detection

1 participant