Skip to content

podigee/podigee-podcast-player-theme-sdk

Repository files navigation

Creating a custom theme for the Podigee webplayer

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.

Pre-Requirements

  • basic knowledge of HTML & CSS
  • a web browser
  • a code / text editor (vim, VS Code, ...)
  • a working development environment utilizing Python 3

Getting started

  1. Clone the repository and change your working directory to the root folder of this repository.
  2. Make a copy of the folder containing the standard theme files (e.g. cp -R themes/standard themes/my-theme).
  3. Adjust the player configuration file podcast.json. To do so change the name of the theme in the block options in the mentioned json file and adjust the path for the keys themeCss and themeHtml to use my-theme instead of standard.
"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"
}
  1. 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.

  1. Open a web browser with the URL http://0.0.0.0:8080.
  2. Start being creative and adjust / extend the CSS file in the folder of my-theme with the styling information that fits your preferences / requirements. 😎

Make use of your new theme

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published