You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#115713 Audio not playing in pop-up mp4 video

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by jobrusche on Thursday, 04 January 2024 22:20 GMT

jobrusche
I entered below code in an article to autoplay a mp4 video in a pop-pup

<p style="text-align: center;"><a href="https://www.joomlacontenteditor.net/images/videos/Video_1_1_2024.mp4" target="_self" type="video/mp4" id="d3c2f5d3f5h7c2i8c2" class="jcepopup autopopup-multiple noicon" data-mediabox="1" data-mediabox-width="1024" data-mediabox-height="1024" data-mediabox-autoplay="true"><span style="font-family: verdana, geneva; font-size: 14pt;"><strong>Beweging</strong></span> </a></p>

The video plays OK when te page is loaded but there is no audio. Even tried adding data-mediabox-muted="false" but that did not help.

Ryan
Many modern browsers have policies to prevent videos with sound from playing automatically to improve the user experience. This is to avoid unexpected audio playing when a user visits a page. These policies are especially strict on mobile devices. Example - https://developer.chrome.com/blog/autoplay/

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

jobrusche
I removed the autoplay argument,
Now I click on the pop-up link after the page loaded, but the audio still does not render. Also the louspeaker icon is grayed out
See site: nicole.brusche.be pop-up link is Beweging

Ryan
There appears to be an error in your video. Chrome will play the video without sound, but Firefox displays an errror:

"Media resource http://nicole.brusche.be/images/videos/Video_1_1_2024.mp4 could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)"

There may have been an error when the video was encoded / saved.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

jobrusche
When I received this video in an email it had the extention .MOV. So I converted it to .MP4
When you pointed out that there was an error, I inspected the properties of the MOV file more closely and found out that
it originally already was an MP4.
When I then replaced it on the website, the autoplay functionned correctly with audio.
Thanks for your assist.
Johan.