maximev
Forum Replies Created
-
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Ajax breaks the player styleHello,
I managed to resolve the problem!
The issue was happening not because of Powerpress, but because the media element player script wasn’t called after the initial page load, and this is what caused the ajax issue.
Fix :
1. Added these two lines in my functions.php
wp_enqueue_style(‘wp-mediaelement’);
wp_enqueue_script(‘wp-mediaelement’);2. Reinitiated the media element after each ajax page load
if ( jQuery(‘#player audio’) ) jQuery(‘#player audio’).mediaelementplayer();Thanks,
MaxForum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Ajax breaks the player styleActually from what I can see, since my website is using Ajax navigation, the player.min.js file that powerpress uses to build the custom player isn’t called when the page is accessed afterwards, since the player is built on the window.load call.
Is there a way I can manually fire the script that builds the player?
Before powerpress script has fired (see code on the left)
http://gomim.akufen-server.ca/app/themes/mim/img/events/support/powerpress-script-missing.pngAfter powerpress script has fired (see code on the left)
http://gomim.akufen-server.ca/app/themes/mim/img/events/support/powerpress-script-fired.pngThanks!
MaxForum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Ajax breaks the player styleHi Shawn,
The issue is the ajax call within the site…
To recreate the bug you need to navigate away on the same site and come back to the page. Then the style breaks.
Please see here :
gomim.akufen-server.ca/app/themes/mim/img/video/powerpress-issue.mp4Thanks a lot,
Max- This reply was modified 8 years, 4 months ago by maximev.
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Ajax breaks the player styleHi Shawn,
Thanks for your fast reply!
The only player on the page is the Powerpress player 🙂
http://maxveilleux.com/_demo/powerpress/powerpress-audio.pngSince it is an html5 player, I’ve customized the style with a little CSS.
I am using the default audio player, as you can see here :
http://maxveilleux.com/_demo/powerpress/media-element.pngThe player is added to the page with the_powerpress_content() in my template file.
If I navigate away from the page and come back to it, I get this :
http://maxveilleux.com/_demo/powerpress/powerpress-broken.pngYou can test this by clicking the “Open mic & fin de l’année” link here :
http://gomim.akufen-server.ca/fr/evenements/Thanks a lot!
Max