Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Build/Webpack/DevServer/Resources

This file was deleted.

22 changes: 21 additions & 1 deletion Build/Webpack/DevServer/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@
// transcript: "https://sachsendigital.ddev.site/extra/logbuch_netzpolitik/lnp423.vtt",
</script>

<!--
Cant load the previous/original source - Quellübergreifende (Cross-Origin) Anfrage blockiert.
Added wikipedia commons example just for audio testing.

<slub-media id="player-audio" config="MEDIA_CONFIG" mode="audio">
<source src="https://logbuch-netzpolitik.de/podlove/file/8337/s/webplayer/c/episode/lnp423-die-grenze-des-nicht-peinlichen.m4a" type="audio/mp4">
<source src="https://logbuch-netzpolitik.de/podlove/file/8340/s/webplayer/lnp423-die-grenze-des-nicht-peinlichen.mp3" type="audio/mpeg">

<dlf-chapter timecode="0" title="Intro"></dlf-chapter>
<dlf-chapter timecode="31" title="Prolog"></dlf-chapter>
Expand All @@ -100,5 +104,21 @@
<dlf-chapter timecode="7021" title="EDPB Call for Experts"></dlf-chapter>
<dlf-chapter timecode="7286" title="Epilog"></dlf-chapter>
</slub-media>
-->

<slub-media id="player-audio" config="MEDIA_CONFIG" mode="audio">
<source src="https://upload.wikimedia.org/wikipedia/commons/0/08/WIKIMOVE_Podcast_11_-_Decentralization.ogg" type="application/ogg">

<dlf-chapter timecode="0" title="Intro"></dlf-chapter>
<dlf-chapter timecode="10" title="Prolog"></dlf-chapter>
<dlf-chapter timecode="62" title="Talk"></dlf-chapter>
<dlf-chapter timecode="3676" title="Epilog"></dlf-chapter>
</slub-media>
<p>
WIKIMOVE Podcast 11 - Decentralization <br>
Author: Wolfgang Patz <br>
<a href="https://meta.wikimedia.org/wiki/WIKIMOVE/Podcast#episode-11">link to wikimedia</a>
</p>
<p>This file is licensed under the <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0 International license</a>.</p>
</body>
</html>
12 changes: 9 additions & 3 deletions Build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ module.exports = (env, argv) => {
return {
devtool: "source-map",
devServer: {
static: {
directory: path.resolve(__dirname, "Webpack/DevServer"),
},
static: [
{
directory: path.resolve(__dirname, 'Webpack/DevServer'),
},
{
directory: path.resolve(__dirname, '../Resources'),
publicPath: '/Resources',
},
],
compress: true,
port: 9000,
server: {
Expand Down
3 changes: 2 additions & 1 deletion Documentation/Features/MediaPlayer/Developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ The Dev Server is intended for developing and testing the media player in a well
* The server is configured in the ``devServer`` key in ``/Build/webpack.config.js``.

* Resources to be served are located in ``Build/Webpack/DevServer/``.
This contains a symlink to ``/Resources``, so that all resources can be accessed from a served page via a repository-relative path.
The Webpack Dev Server additionally serves ``/Resources`` directly from Kitodo.Presentation repository's ``Resources`` directory,
allowing all resources to be accessed from a served page via repository-relative paths.

Command Reference
-----------------
Expand Down
Loading