May 20, 2019 at 1:31 pm #1102476
<div class="avia-video avia-video-16-9 av-lazyload-video-embed " style="background-image:url('https://.../wp-content/uploads/...-teaser.jpg');" itemprop="video" itemtype="https://schema.org/VideoObject" data-original_url="https://.../wp-content/uploads/Teaser-Website-Food-TV.m4v">[video src="https://.../wp-content/uploads/Teaser-Website-Food-TV.m4v?autoplay=1" /]</div>
WP + Enfold: Latest
The preview image + play button shows correctly. Once clicking on the play button, only the video-shortcode is pasted instead of the html-code.
May 21, 2019 at 5:42 pm #1102972
- This topic was modified 10 months, 3 weeks ago by mailworm.
Could you please give us a link to your website, we need more context to be able to help you.
VictoriaMay 22, 2019 at 8:03 pm #1103445
Hi Victoria, please see private content for login credentials. Thank you, ThomasMay 23, 2019 at 2:34 pm #1103673
I could not log in. I am getting an error.
Anyway, please disable lazy loading and see if the issue persists.
VictoriaMay 23, 2019 at 3:18 pm #1103685
Ups, sorry Victoria, backend was limited for access through german IPs only. You could try again now.
However, I tried all combos.
– Lazy Load + Preview Image + Video
– Immediate Load + Preview Image + Video
– both combo without Preview Image
It always shows [video src="https://.../wp-content/uploads/Teaser-Website-Food-TV.m4v" /] instead of rendering the corresponding HTML.
A child theme is in place, but nothing there is touching this or any other shortcode.
Also already deactivated all plugins, with no effect.
Please help/ advice.May 23, 2019 at 3:23 pm #1103686
Uh! When I use the classic editor and use “insert theme shortcode” > media elements > video, the code pasted is [av_video ..! while the same element used in the ALB seems to insert [video … (without av_?!? However the problem at the frontend is the same. A [video .../] short code is pasted instead of HTML.
May 23, 2019 at 3:48 pm #1103696
- This reply was modified 10 months, 3 weeks ago by mailworm.
Uploaded the same video as mp4 instead of m4v and now the video loads. Seems, like m4v is missing in line 348 of video.php. However, it does not lazy load, though I set it to do so. It loads immediately.
Plus the video is looping and does not stop at the end. I don’t see any option to toggle this?
Thank you.May 29, 2019 at 5:41 am #1105045
Thanks for the update.
The m4v is not included in the list supported formats by the video shortcode. You can only use mp4, ogg, web and ogv. You can also upload the video to youtube or vimeo.
If you want to disable the loop, edit the framework > php > function-set-avia-frontend.php file. Look for the code inside the “avia_html5_video_embed” function around line 616:
$loop = $attributes['loop'] == 1 ? 'loop' : '';
IsmaelMay 29, 2019 at 9:01 am #1105078
couldn’t this option “loop on/ off” be considered as option in a future version? I’ve seen this question asked regularly. Overriding the file will make me loose the change on update.
However, the lazy load functionality does not work. I have added a mp4 video and set “lazy load videos” to “wait for user interaction”. Nonetheless the video is loaded immediately.
Thank you.May 31, 2019 at 6:55 am #1105595
couldn’t this option “loop on/ off” be considered as option in a future version?
This is possible with the current shortcode, but you need to use youtube or vimeo. Set the loop parameter to false or 0.
You must be logged in to reply to this topic.