Foliovision › Forums › FV Player › Troubleshooting › fv player not working inside the WPLMS pwa
-
-
Hello Brayan,
so does the issue only occur on your mobile phone app and everything works on your website?
How does your mobile app show your website content?
What video type did you use with the free version and what do you use with FV Player Pro? Did you perhaps switch from MP4 to Vimeo or so?
Please let us know.
Thanks,
Martinthe same videos, I did not change the videos, mp4 videos.
I have added a code the the author of wplms published on its site:
add_action(‘wp_enqueue_scripts’,function(){
?>
<script>
document.addEventListener(‘unit_loaded’,function(){
document.querySelectorAll(‘.flowplayer’).forEach(function(element){
flowplayer(element,JSON.parse(element.getAttribute(‘data-item’)));
})
});
</script>
<?php
});
but it does not work,Hello Brayan,
please try to use this code instead:
document.addEventListener('unit_loaded', function(){ fv_player_load(); });
That should already check all the instances and load what’s necessary.
If that won’t help, here’s a variation:
document.addEventListener('unit_loaded', function(){ setTimeout( fv_player_load, 10 ); });
If that won’t help then please try to reinstall FV Player Pro, as I put in a fix into it.
To do that first deactivate and delete the FV Player Pro plugin you are using (no data will be lost), then hit “Install Pro extension” at the top of the wp-admin -> Settings -> FV Player screen. That will reinstall the plugin and give you the update version.
Then switch to the Beta release using the steps from here: https://foliovision.com/player/basic-setup/switching-fv-player-pro-to-beta
Thanks,
MartinHello Bryan,
could you please let us know what did you had to do to fix the WPLMS integration if you have a bit of time? I would like to report this back to WPLMS developers so that they can fix it here: https://wplms.io/support/knowledge-base/fv-player-support-for-wplms-4-0-in-unit/
I moved your question about FV Player Coconut Wizard to a new thread: https://foliovision.com/support/fv-wordpress-flowplayer/troubleshooting/fv-player-coconut-wizard-fails-to-setup-bunnycdn
Thanks,
MartinHello, I only used the code you provided,
add_action('wp_enqueue_scripts',function(){ ?> <script> document.addEventListener('unit_loaded', function(){ setTimeout( fv_player_load, 10 ); }); </script> <?php });
fv player pro is set to release and not beta.
the videos are playing well on chrome however on safari, once I switch to the next wplms unit and get back to the previous unit the video will keep loading without showing any video content.Hello Brayan,
I thought I will be able to check this easily, but it’s not as simple. Appending a new player to page using Ajax, playing it, then appending another, playing it and finally playing the player in from that previous Ajax request didn’t trigger any issues.
I tested with Safari 14.1.1 and 15.0.
What specific featured you use with your MP4 videos? Are these in playlist, chapters, or with AB looper?
Could you please share a test page on your website where we can see this behavior?
Thanks,
MartinHello Brayan,
please just reply to the forum notification. You can use a service like https://revealit.me/ to share the access with reasonable security if there is any access password.
Thanks,
MartinHello Brayan,
thank you for sending it over to us privately.
I was able to see the issue in Safari. I wonder when deos the WPLMS unit_load event really occur.
Please try to increase the timeout in it:
document.addEventListener('unit_loaded', function(){ setTimeout( fv_player_load, 100 ); });
If this helps, then perhaps WPLSM just needs to provide an event which occurs once the new unit HTML code is set and not before that.
Thanks,
Martinhello thank you for the code, I now have the videos issue on safari solved however now this code caused a problem, my wplms units are being marked complete just after clicking the play button, can you please contact vibethemes so you can work on a proper solution?? i can’t work with this current state of plugin.
Hello Brayan,
could you please double-check that the issue will be solved just by removing the code to load FV Player?
Are you using any WPLSM setting to track video progress?
Could you please ask WPLSM support if they track FV Player video progress in any way? It’s hard for us to check this as we do not have their license nor a test site. We contacted them regarding their documentation and haven’t heard back from them yet.
Thanks,
Martin