Jump to content

Iframe youtube embeding


bmills773
 Share

Recommended Posts

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;&amp;autoplay=1&amp;mute=1" width="560"></iframe></p>
 

Link to comment
Share on other sites

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;&amp;autoplay=1&amp;mute=1" width="560"></iframe></p>
 

Just take out &amp;mute=1 from the end of your URL.

Link to comment
Share on other sites

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

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

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

You can disable it in your own browser, but not for anybody else.

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

  • 1 month later...

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

  • 5 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...