I've tried this and it's not working. I've cleared all cookies and cache. Is there a different way to accomplish this?
I've tried this and it's not working. I've cleared all cookies and cache. Is there a different way to accomplish this?
I noticed too late to delete my comment that this solution is for wpDiscuz. I found this answer by searching the forum for preload but I haven't been able to find a similar solution for wpForo. Is there a way to set all the videos in wpForo to preload=none?
P.S. I have Advanced Attachments
The preload attribute does not stay equal to none. Eventually, it always reverts back to metadata.
Thanks
What are you looking for screenshots and links of? The site is stbfitnesscenter.com if that helps. The code is in my active theme's functions.php file.
I posted the coding above:
add_filter('wpforo_content_filter', function($content){
return preg_replace('#(<video)(\s?[^<>]*?>)#iu', '$1 preload="none"$2', $content);
}, 99);
And after a while, I'm not sure exactly how long, the coding reverted back to what I believe is its default setting:
add_filter('wpforo_content_filter', function($content){
return preg_replace('#(<video)(\s?[^<>]*?>)#iu', '$1 preload="metadata"$2', $content);
}, 99);
Since I just changed the coding back to preload=none this morning, this is not an issue right now but it happened twice already and I believe it will happen again.
I also just noticed another issue while checking the preload attribute. If you want me to post it as another topic just let me know.
Once I fullscreen a video, then return the video to its normal size, the video is no longer visible. You can still hear the video playing in the background tho. You can use any of the videos here as an example... https://stbfitnesscenter.com/community/she-shed/test-jackie/