[FEATURE] Integrate media player from slub_web_sachsendigital#1320
[FEATURE] Integrate media player from slub_web_sachsendigital#1320sebastian-meyer merged 135 commits intokitodo:mainfrom
Conversation
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
|
You placed a lot of JavaScript files in Also, please put all unchanged third-party libraries in their own sub-directories separate from your own JS files. There are several reasons for that:
|
f8e7a39 to
b591463
Compare
This is correct and was done on purpose. All the files in the |
As far as i know this two third-party files were copied from the original repository and rewritten by @dvoracek-slub to meet the ES6 typescript requirements: The only other file I found is: Which in my opinion should not easily be updated, like the other two files, without deeply testing the whole function of the Player. Apart from that, all other third-party dependencies are located in the |
|
I agree that the files created after the build process should be stored in the |
78a41f1 to
d51c11c
Compare
sebastian-meyer
left a comment
There was a problem hiding this comment.
Some general remarks in addition to the detailed comments below (as discussed in our call):
- Please remove the DevServer or make it a dev-only dependency if that's possible.
- Please try to merge DlfMediaPlayer, SlubMediaPlayer and lib/ as much as possible, since those are dependencies of each other anyway which won't work as stand-alone implementations.
** At the moment it is really difficult to tell apart what those do, where they are used and how they depend on each other.
** The best way of handling this would be to have just two directories: One containing the third-party Shaka player (and possibly other unchanged third-party libraries) and one containing all the Kitodo-specific code. - Please add license and author information to every non-third-party file.
Resources/Private/JavaScript/SlubMediaPlayer/components/equalizer/FrequencyResponse.js
Outdated
Show resolved
Hide resolved
Resources/Private/JavaScript/SlubMediaPlayer/components/equalizer/filtersets/RiaaEq.js
Show resolved
Hide resolved
d51c11c to
f782308
Compare
f782308 to
202f3fc
Compare
202f3fc to
24373d6
Compare
16ff964 to
d7ba131
Compare
7100340 to
7709d4e
Compare
bf08e74 to
6360928
Compare
Reverts variable renaming as it would break compatibility with waveform-data library: - Library expects snake_case properties i.e. 'sample_rate' - TypeScript definitions enforce 'sample_rate' naming
Adds proper existence check for showFull configuration value to prevent PHP undefined array key warning.
…les and simplified the ViewHelper
causing eslint errors: document.fullscreenElement() and fullscreenEnabled() is not supported in iOS Safari 15.6-15.8
Remove Superglobal and add dependency injection for SiteLanguage request and update deprecated getTwoLetterIsoCode
1135f66 to
ed09690
Compare
|
Regarding to this: #1320 (review)
The few files to Test the Media Player have been moved to
Because this is already hard enough to handle, i would not vote to merge this all together. The reason, why it was arranged this way is clarified in the Kitodo/Mediaplayer Documentation. One Solution to seperate it for future JS libaries in the
What do you think?
I added the Kitodo License Information to the Javascript files in the |
sebastian-meyer
left a comment
There was a problem hiding this comment.
Wow, outstanding work! What an achievement, especially considering how many different developers already worked on this code!
The javascript with all its cross-dependencies is still mostly a big mess, but that's not your fault and we can fix that later. I'll merge it for now in order to finally get to a stable 6.0 release.
Again: thank you very much for this big contribution! Great job!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1320 +/- ##
============================
============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR integrates the video/audio player from slub_web_sachsendigital into a new MediaPlayer plugin.
The PR is based on #796 and #818 from @dvoracek-slub