bmills773 Posted May 16, 2019 Share Posted May 16, 2019 I'm trying to embed a youtube video and have it autoplay with sound. I seem to only be able to have it play with sound but no autoplay or autoplay with no sound. this is the code i'm using to autoplay with no sound <p><iframe allowfullscreen="" frameborder="0" height="315" include="" src="https://www.youtube.com/embed/tRPYE1jRMDQ?rel=0;&autoplay=1&mute=1" width="560"></iframe></p> Link to comment Share on other sites More sharing options...
Funce Posted May 16, 2019 Share Posted May 16, 2019 4 hours ago, bmills773 said: I'm trying to embed a youtube video and have it autoplay with sound. I seem to only be able to have it play with sound but no autoplay or autoplay with no sound. this is the code i'm using to autoplay with no sound <p><iframe allowfullscreen="" frameborder="0" height="315" include="" src="https://www.youtube.com/embed/tRPYE1jRMDQ?rel=0;&autoplay=1&mute=1" width="560"></iframe></p> Just take out &mute=1 from the end of your URL. Link to comment Share on other sites More sharing options...
bmills773 Posted May 16, 2019 Author Share Posted May 16, 2019 I tried that and it made a broken video. I'm using this for work and the application that I have to us is ckeditor Link to comment Share on other sites More sharing options...
Funce Posted May 16, 2019 Share Posted May 16, 2019 57 minutes ago, bmills773 said: I tried that and it made a broken video. I'm using this for work and the application that I have to us is ckeditor I can put that exactly in my browser, and I get an autoplay with sound. Can I see what you're broken video version is? Link to comment Share on other sites More sharing options...
Ingolme Posted May 17, 2019 Share Posted May 17, 2019 I believe that most browsers today have a feature that does not allow autoplay videos to have sound. This is so that users don't get annoyed as soon as they land on a page. Link to comment Share on other sites More sharing options...
bmills773 Posted May 17, 2019 Author Share Posted May 17, 2019 Is there a way to disable that? I got it to work on IE. what I'm doing is we have a program that will show our customer's waiting status on their cars (service department) and between the status, it will play adverts for us. Now when I get it to work on IE but the video will play will the status will be showing and when it's time for the video to come on it'll be done playing. Link to comment Share on other sites More sharing options...
Ingolme Posted May 17, 2019 Share Posted May 17, 2019 You can disable it in your own browser, but not for anybody else. Instructions for Chrome https://www.ghacks.net/2018/02/06/how-to-control-audio-and-video-autoplay-in-google-chrome/ Instructions for Firefox https://support.mozilla.org/en-US/kb/block-autoplay Read more about Chrome's autoplay behavior here: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes It is a terrible user experience to autoplay sounds, this is why browsers disable it until the user actively chooses to see the media. Link to comment Share on other sites More sharing options...
ishan_shah Posted June 21, 2019 Share Posted June 21, 2019 Hello, You can directly use it as follows: Go to YouTube. Select Video. Click on share button. Select embed option. Finally you will get a iFrame tag coding for video that you can directly post on your html code Link to comment Share on other sites More sharing options...
shaili_shah Posted December 16, 2019 Share Posted December 16, 2019 (edited) refer this: <iframe width=”560″ height=”315″ src=” https://www.youtube.com/embed/[Video ID]I?&autoplay=1″ frameborder=”0″ allowfullscreen></iframe> https://www.4kdownload.com/howto/how-to-autoplay-embedded-youtube-videos Edited December 16, 2019 by shaili_shah Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now