This repository contains the necessary documentation and materials to get you started with creating a custom webplayer theme. It includes the standard theme files for the Podigee webplayer, which can be used for developing your own theme in case you booked the separate "Custom webplayer package" from us.
- basic knowledge of HTML & CSS
- a web browser
- a code / text editor (vim, VS Code, ...)
- a working development environment utilizing Python 3
- Clone the repository and change your working directory to the root folder of this repository.
- Make a copy of the folder containing the
standard
theme files (e.g.cp -R themes/standard themes/my-theme
). - Adjust the player configuration file
podcast.json
. To do so change the name of the theme in the blockoptions
in the mentioned json file and adjust the path for the keysthemeCss
andthemeHtml
to usemy-theme
instead ofstandard
.
"options": {
"theme": "my-theme",
...
"themeCss": "http://0.0.0.0:8080/themes/my-theme/index.css",
"themeHtml": "http://0.0.0.0:8080/themes/my-theme/index.html"
}
- As next step we need a simple CORS-capable webserver. As a dependency in this repository we are already using
http-server
. You can simply install this dependency via the command line:
$ npm install
After the installation was successful, you can easily start the webserver with enabled CORS, running on port 8080:
$ npm start
Feel free to change the port (or add further options for the server) via the package.json
. Please make sure to change all occurrences of the default port 8080 in this repository (index.html, podcast.json
) in case you are using a different port.
- Open a web browser with the URL
http://0.0.0.0:8080
. - Start being creative and adjust / extend the CSS file in the folder of
my-theme
with the styling information that fits your preferences / requirements. 😎
When you are done developing your own theme, you can simply upload the HTML and CSS file from my-theme
to your own webspace. Put the URLs to these files in the Web-Player
tab in the podcasts settings in your Podigee account. Make the advanced settings visible, switch the player theme to External theme
and fill in the URLs to the CSS and HTML.
Note: please make sure to let your webserver add a CORS header when delivering the files. Either use a wildcard *
or https://player.podigee-cdn.net
to allow the CORS request only from our player CDN.