Skip to content

Commit

Permalink
Refactor: Update file paths for DlfMediaPlayer JavaScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoelzel committed Dec 17, 2024
1 parent 4847abd commit 50418ee
Show file tree
Hide file tree
Showing 19 changed files with 558 additions and 583 deletions.
1,049 changes: 494 additions & 555 deletions Build/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"less": "4.1.0",
"less-loader": "^12.2.0",
"mini-css-extract-plugin": "^2.9.0",
"typescript": "^5.4.5",
"typescript": "^5.6",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-dev-server": "^5.1.0",
"webpack-remove-empty-scripts": "^1.0.4"
},
"dependencies": {
Expand All @@ -60,7 +60,7 @@
"peaks.js": "^3.4.0",
"piexifjs": "^1.0.6",
"qrcode": "^1.5.3",
"shaka-player": "^4.9.2",
"shaka-player": "^4.11.2",
"tslib": "^2.6.3",
"waveform-data": "^4.5.0",
"wavesurfer.js": "^7.7.15"
Expand Down
2 changes: 1 addition & 1 deletion Build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (env, argv) => {
'DlfMediaPlayerStyles': path.resolve(PRIVATE_PATH, `Less/DlfMediaPlayer.less`),
},
output: {
filename: 'JavaScript/[name].js',
filename: 'JavaScript/DlfMediaPlayer/[name].js',
path: PUBLIC_PATH,
},
plugins: [
Expand Down
4 changes: 2 additions & 2 deletions Classes/Controller/MediaPlayerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ protected function addPlayerAssets(): void
);
$assetCollector->addJavaScript(
'DlfMediaPlayerJs',
'EXT:dlf/Resources/Public/JavaScript/DlfMediaPlayer.js',
'EXT:dlf/Resources/Public/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js',
['type' => 'text/javascript']
);
$assetCollector->addJavaScript(
'DlfMediaVendorJs',
'EXT:dlf/Resources/Public/JavaScript/DlfMediaVendor.js',
'EXT:dlf/Resources/Public/JavaScript/DlfMediaPlayer/DlfMediaVendor.js',
['type' => 'text/javascript']
);
}
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Features/MediaPlayer/Developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ The Dev Server is intended for developing and testing the media player in a well

.. code-block:: html

<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>

* The server is configured in the ``devServer`` key in ``/Build/webpack.config.js``.

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title>Document</title>

<script src="/Resources/Public/JavaScript/jQuery/jquery-3.6.0.min.js"></script>
<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>

<script src="/app-config.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/disposable.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

<div id="players"></div>

<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/equalizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ <h1>Equalizer Test</h1>
</dlf-media-controls>
</slub-media>

<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>

<script>
const equalizer = document.querySelector('dlf-equalizer');
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/maximal-beispiel.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<dlf-meta key="title" value="Wolfgang H Scholz „Schattensucher“ (1994)"></dlf-meta>
</slub-media>

<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/player-mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
};
</script>

<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>

<h3>This player should always be in audio mode</h3>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/DevServer/schattensucher.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</dlf-media-controls>
</slub-media>

<script src="/JavaScript/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaVendor.js"></script>
<script src="/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion Resources/Public/Css/DlfMediaPlayerStyles.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Resources/Public/Css/DlfMediaVendor.css

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions Resources/Public/JavaScript/DlfMediaPlayer.js

This file was deleted.

3 changes: 3 additions & 0 deletions Resources/Public/JavaScript/DlfMediaPlayer/DlfMediaPlayer.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/** @preserve
This is based upon VideoFrame (see below). Changes:
- export default
- Slightly refine JSDoc/typings

Source: https://raw.githubusercontent.com/allensarkisyan/VideoFrame/master/VideoFrame.js

---

VideoFrame: HTML5 Video - SMTPE Time Code capturing and Frame Seeking API
@version 0.2.2
@author Allen Sarkisyan
@copyright (c) 2013 Allen Sarkisyan
@license Released under the Open Source MIT License

Contributors:
Allen Sarkisyan - Lead engineer
Paige Raynes - Product Development
Dan Jacinto - Video Asset Quality Analyst

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, and/or distribute copies of the
Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- Attribution must be credited to the original authors in derivative works.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
3 changes: 3 additions & 0 deletions Resources/Public/JavaScript/DlfMediaPlayer/DlfMediaVendor.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions Resources/Public/JavaScript/DlfMediaVendor.js

This file was deleted.

0 comments on commit 50418ee

Please sign in to comment.