Forum Replies Created

Viewing 1 replies (of 1 total)
  • It’s crazy how easy it is to find the default attributes in the media.php yet how hard it is to find documentation on it. Someone write this down somewhere that other users can find it:

    $defaults_atts = array(
    		'src'      => '',
    		'loop'     => '',
    		'autoplay' => '',
    		'preload'  => 'none'
    	);

    Later on

    'class'    => apply_filters( 'wp_audio_shortcode_class', 'wp-audio-shortcode' ),
    		'id'       => sprintf( 'audio-%d-%d', $post_id, $instances ),
    		'loop'     => $loop,
    		'autoplay' => $autoplay,
    		'preload'  => $preload,
    		'style'    => 'width: 100%',

    I see nothing for configuration specifically to the mediaelement.js. For example, passing arguments to the constructor in the javascript. That would be awesome, someone needs to implement a filter for that so we can alter them in plugins and themes! Unless there already is an undocumented one.

Viewing 1 replies (of 1 total)