Jump to content
Sign in to follow this  
bmills773

Iframe youtube embeding

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>
 

Share this post


Link to post
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.

Share this post


Link to post
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?

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...