Tagged: x
-
AuthorPosts
-
February 2, 2017 at 6:31 pm #1355924
jquinn33ParticipantHi! I’m using Ethos and have an audio player on the Home page. As the page scrolls down there is an embedded video. Is there a way to have the audio player stopped when someone clicks to play the embedded video?
Thank you!
February 2, 2017 at 10:13 pm #1356251
Prasant RaiModeratorHello There,
Thanks for writing in!
Could you please provide us with your website URL so we can take a closer look?
Thanks.
February 3, 2017 at 8:46 am #1356781
jquinn33ParticipantThis reply has been marked as private.February 3, 2017 at 3:42 pm #1357266
RadModeratorHi there,
If the video is a self-hosted, then it’s possible. Currently, the video is hosted and communication from iframe window and your site aren’t possible. Hence, can’t detect if the video is played or clicked.
Try adding the video as self-hosted. Then we can add something like this to self-hosted play event.
$('audio').each(function() { $(this)[0].pause(); });Thanks!
February 3, 2017 at 3:53 pm #1357279
jquinn33ParticipantThank you so much, Rad! I’ll try this out!! You guys are the BEST! 🙂
February 3, 2017 at 9:17 pm #1357570
jquinn33ParticipantHi Rad! I was able to change this to a self-hosted video. Can you tell me where the self-hosted play event is for me to add the code you suggested?
Thank you again!
February 4, 2017 at 12:34 am #1357672
Rue NelModeratorHello There,
Thanks for updating in! Please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function(){ $('audio').each(function() { $(this)[0].pause(); }); })(jQuery);Hope this helps.
February 4, 2017 at 8:59 am #1357898
jquinn33ParticipantYou’re my HERO!! Thank you! It works perfectly!
You guys are the BEST!!
February 4, 2017 at 11:21 am #1357954
ThaiModeratorYou’re most welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1355924 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
