podlove / podlove-publisher

Podlove Podcast Publisher for WordPress
https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/
MIT License
299 stars 84 forks source link

Podlove Webplayer in static site does not work #1226

Open douglaskastle opened 3 years ago

douglaskastle commented 3 years ago

Expected behavior

(This is more of a feature request than a bug)

When making a static site, most of the website gets created correctly. On episode pages, where the player is set to webplayer5. It works on the standard website

Actual behavior

The webplayer support is contained in the source code of the static version of the site, but there are so many configuration options been passed in that refer to some cached or json elements fond dynamic website and not the static site, it just does not appear on the resulting static website.

https://github.com/mwshow/mwshow.github.io/blob/c18fd7dec34af48a96cd6bff996997da07bf1d78/mws_164/index.html

I have been able to achieve a working player on a static site using podigee and templates, but it would be nice is webplayer 5 was static site ready.

I use the WP plugin simple static.

System information (see Podlove > Support menu)

Website                    http://mwshow.wp.podonaut.com
PHP Version                7.4.3
WordPress Version          5.7.2
WordPress Theme            Twenty Twenty-One v1.3
Active Plugins             
           - Podlove Podcast Publisher v3.5.4
           - Podlove Web Player v5.4.13
           - Simply Static v2.1.3
           - WordPress Importer v0.7
WordPress Database Charset utf8mb4
WordPress Database Collate 
Publisher Version          3.5.4
Publisher Database Version 151
Web Player Version         player_v5
Monolog Version            1
open_basedir               ok
curl Version               7.68.0
iconv                      available
simplexml                  ok
max_execution_time         30
upload_max_filesize        250M
memory_limit               256M
disable_classes            
disable_functions          pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
permalinks                 ok (/%postname%/)
podlove_permalinks         ok
podcast_settings           ok
web_player                 ok
podlove_cache              on
assets                     
  - mp3    audio/mpeg       http://mwshow.wp.podonaut.com/feed/podcast/
cron                       ok
duplicate_guids            ok

0 errors
0 notices
Nice, Everything looks fine!
douglaskastle commented 3 years ago

Partial fix found for webplayer. The failing version had it "source" from "local", if I change it to "cdn" it starts working, this is good.

However this work is for the long term (very long term 20 years+) so I might like to /need to avoid the cdn.