• Resolved kindav

    (@kindav)


    I am using Seriously Simple Podcasting on my church website. I have created four separate podcasts, but we are actively using only two. (I never took the time to properly merge everything together).

    One of those podcasts is giving an error when I try to play any episode:

    Media error: Format(s) not supported or source(s) not found
    Download File: https://www.fairplainpc.com/podcast-player/8132/26th-sunday-in-ordinary-time-3.mp4?_=1 (one recent example, but every last one – only in this podcast! – fails to play).

    If I edit the episode and follow the link under “episode file,” (one example is https://www.fairplainpc.com/wp-content/uploads/2023/26th Sunday in Ordinary Time – 01 October 2023 – 09-25-06 AM.mp4), that plays the video.

    I do not have any caching software. I am not using NGINX; I’m on Dreamhost, not Bluehost, and as far as I know we use Apache. I am using Seriously Simple Podcasting 2.23.0.

    Since the issue seems to be only happening with one specific video podcast (other video podcasts are working), I’m considering making a new podcast, transferring everything over to it, and deleting this one, but that seems like a lot of work if there’s an easier solution.

    As far as I know, the only thing I have changed recently is that I switched from the The Church Lite theme to Worpress’s Twenty Twenty Three.

    I am using PHP 8.1, and I do not believe that has changed since this issue began.

    Any ideas?

    Thanks for making a great plugin!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @kindav,

    I suspect that, for some reason, .mp4 files are not being processed by your server. Unfortunately, it’s challenging to pinpoint the exact cause.

    However, we can attempt to narrow down the issue. Would you be willing to try inserting the following code snippet into your functions.php file?

    add_filter('wp', function(){
    	if (  ! ssp_is_podcast_download() ) {
    		return;
    	}
    
    	global $wp_query;
    
    	// Get requested episode ID
    	$episode_id = intval( $wp_query->query_vars['podcast_episode'] );
    
    	$file = get_post_meta( $episode_id, apply_filters( 'ssp_audio_file_meta_key', 'audio_file' ), true );
    
    	$file = apply_filters( 'ssp_episode_enclosure', $file, $episode_id );
    
    	if( filter_input( INPUT_GET, 'debugit'  ) ){
    		print_r($file);
    	}
    
    	if ( strpos( $file, '.mp4' ) ) {
    		$file = str_replace( ' ', '%20', $file );
    		wp_redirect( $file, 302 );
    		exit();
    	}
    }, 0);

    Best regards,
    Serhiy.

    Thread Starter kindav

    (@kindav)

    It took me a minute to realize I had to create a functions.php file and add <?php to the front of the code you offered because the Twenty Twenty-Three theme doesn’t have a functions.php, but I got it done and it worked. Videos now play properly.

    Does that narrow down the problem? (For others reading, this obviously isn’t the final resolution because when the theme updates the functions.php file will be deleted).

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @kindav,

    My apologies for the delayed response. It appears that all your links are currently functioning correctly, is that correct?

    Would it be possible to temporarily remove the code I provided and verify if the issue reoccurs?

    Thank you for your cooperation.

    Thread Starter kindav

    (@kindav)

    Curious. After I removed that code, it still works. I haven’t uploaded any new episodes, but will on Sunday. I’ll come back Monday and let you know if new episodes are working properly.

    Thread Starter kindav

    (@kindav)

    New episodes were uploaded, and they worked perfectly. Sorry I forgot to respond last week!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘One of my feeds is giving me the Media error: Format(s) not supported etc.’ is closed to new replies.