Keyword

Allvideos Conflict with Templates

  • Tomas Fernandez-Calvo
  • Tomas Fernandez-Calvo's Avatar Topic Author
  • Offline
  • New Member
More
6 years 1 month ago #167152 by Tomas Fernandez-Calvo
Allvideos Conflict with Templates was created by Tomas Fernandez-Calvo
Hello,

This is for those using Rocket Theme templates AND Allvideos 4.8.0 plugin.

As a note, the problem is that the RT sliders stoped working and did not display as intended, but the audios and videos plugin worked as intended.

I figured out the problem. It is a conflict in Javascript with the Clappr media player (github.com/clappr)
Specifically with the file https :// cdn.jsdelivr.net/gh/clappr/clappr@latest/dist/clappr.min.js

This causes the sliders from several of the RT templates to break and not display properly including not showing the slides.

The workaround I found is to disable the call to the clappr js and replace the clappr player with the jwplayer when it's called (i.e. mp3 and mp4 files).
#### In flie /plugins/content/jw_allvideos/jw_allvideos/includes/sources.php
### Line 140 & 141 Replace with:

"mp4"           => $jwPlayerEmbed,
"mp4remote"     => $jwPlayerEmbedRemote,

## Line 157 & 158  Replace with:

"mp3"           => $jwPlayerEmbed,
"mp3remote"     => $jwPlayerEmbedRemote,


#### In file plugins/content/jw_allvideos/jw_allvideos.php
## Comment out line 158
            // Clappr
           // $document->addScript('https://cdn.jsdelivr.net/gh/clappr/clappr@latest/dist/clappr.min.js');

After doing this the RT Sliders went back to working as intended and the media files played fine.

I hope this helps someone with the same issue. I've been wracking my brain for 2 days on this.

Tomás

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum