WordPress.org

Ready to get started?Download WordPress

Forums

MediaElement.js - HTML5 Video & Audio Player
Playing audio linked to post (1 post)

  1. JCaternolo
    Member
    Posted 1 year ago #

    I have a plugin (based on p75VideoEmbed) that attaches audio to the post, and I have a query that check if the audio was indeed grabbed, liked such:

    <?php
    	if ( p75HasAudio($post->ID) ) {
    		echo 'audio grabbed';
    	}
    	else {
    		echo 'No Audio Found';
    	}
    	?>

    My problem is how do I pull the audio file attached to the post to play in MediaElement.

    echo do_shortcode('[audio src=""]');

    would it be based on the short code above?

    http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.