banner



How To Embed Youtube Videos Firefox Iframes Not Showing Up 2018

youtube adds actress embed lawmaking

On ane of my online forums, nosotros ran into a strange issue with Firefox. We embed videos from Youtube, and the code used to look like this:

<iframe width="854" height="480" src="https://www.youtube.com/embed/ryruBoX-MIc" frameborder="0" let="autoplay; encrypted-media" allowfullscreen></iframe>

Now YouTube detects Firefox and the code is:

<div style="position:relative;superlative:0;padding-lesser:56.25%"><iframe src="https://www.youtube.com/embed/YrHeQJpCfRk?ecver=2" style="position:absolute;width:100%;meridian:100%;left:0" width="640" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>

which, every bit yous tin can see. includes a "div" argument. I confirmed this does not get included with MS Border. Sometimes it makes the video take up the total width of the window, ignoring the borders set past the forum code. It usually makes the spacing of subsequent lines about 10 lines per - probably that "padding-bottom=56.25%" (Why 56.25?)

Anyway, at that place'southward a give-and-take and examples at : http://world wide web.largescalecentral.com/forums/topic/28322/today-due south-youtube-embed-lawmaking-may-2018

Funnily, it stopped the total-width today ?? I did not reboot or reload Firefox or anything else - I simply close and suspend my laptop overnight. Fifty-fifty more funny - one guy tried it with his Firefox and did not go the "div" version !!

Any "div" experts shed any lite on this?

On one of my online forums, we ran into a foreign upshot with Firefox. We embed videos from Youtube, and the code used to expect like this: <pre><nowiki><iframe width="854" height="480" src="https://www.youtube.com/embed/ryruBoX-MIc" frameborder="0" permit="autoplay; encrypted-media" allowfullscreen></iframe></nowiki></pre> At present YouTube detects Firefox and the code is: <pre><nowiki><div style="position:relative;elevation:0;padding-bottom:56.25%"><iframe src="https://www.youtube.com/embed/YrHeQJpCfRk?ecver=2" style="position:absolute;width:100%;height:100%;left:0" width="640" meridian="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div></nowiki></pre> which, as you can see. includes a "div" statement. I confirmed this does not get included with MS Border. Sometimes information technology makes the video accept upward the full width of the window, ignoring the borders set by the forum code. It unremarkably makes the spacing of subsequent lines about 10 lines per - probably that "padding-bottom=56.25%" (Why 56.25?) Anyway, there's a discussion and examples at : http://www.largescalecentral.com/forums/topic/28322/today-southward-youtube-embed-lawmaking-may-2018 Funnily, it stopped the full-width today ?? I did non reboot or reload Firefox or annihilation else - I just shut and suspend my laptop overnight. Even more funny - 1 guy tried information technology with his Firefox and did not become the "div" version !! Any "div" experts shed any light on this?

Modified by cor-el

Chosen solution

I'thou pretty sure the verbal contents that are put on the clipboard are determined by a script on YouTube. Google's scripts are very complex, so I'm not inclined to dive into them myself.

Read this answer in context 👍 0

All Replies (eight)

Interesting. This forum took the "div" and either did something with information technology or ignored it - anyhow, information technology doesn't testify.

Here's the Youtube embed code in question. I replaced the < with ~.

~div manner="position:relative;top:0;padding-bottom:56.25%">~iframe src="https://www.youtube.com/embed/YrHeQJpCfRk?ecver=2" style="position:absolute;width:100%;tiptop:100%;left:0" width="640" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>~/iframe>~/div>

Interesting. This forum took the "div" and either did something with it or ignored it - anyhow, it doesn't prove. Here'southward the Youtube embed code in question. I replaced the < with ~. ~div mode="position:relative;meridian:0;padding-lesser:56.25%">~iframe src="https://www.youtube.com/embed/YrHeQJpCfRk?ecver=ii" style="position:accented;width:100%;meridian:100%;left:0" width="640" height="360" frameborder="0" let="autoplay; encrypted-media" allowfullscreen>~/iframe>~/div>

Hi Fred2179, where is the variation in the embed code coming from?

For example, do you get to a video on YouTube and click the Share button, then the <> Embed button, so copy from in that location? And yous become different code depending on what browser y'all utilise?

Or is the problem when yous use a "widget" provided by the forum to add the embed code (the widget modifies the code in Firefox but non in other browsers)?

Or does the problem just appear when you lot edit a post that had an embedded video? There are some references to editing in the thread you linked to.

Hi Fred2179, where is the variation in the embed code coming from? For case, practise you get to a video on YouTube and click the Share push, then the &lt;&gt; Embed button, then re-create from there? And you become different code depending on what browser you use? Or is the problem when you utilize a "widget" provided past the forum to add the embed code (the widget modifies the code in Firefox only not in other browsers)? Or does the problem merely appear when you edit a mail service that had an embedded video? There are some references to editing in the thread you lot linked to.

As the referenced thread describes, I was using standard Youtube practice. Nowadays there isn't always a "share" button - you accept to right-click in a video and select "re-create embed lawmaking."

Now that's interesting. Using the "share" push button, then the <> Embed option you get this (< replaced with ~) :

~iframe width="560" height="315" src="https://www.youtube.com/embed/UQF4zp2I6a0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>~/iframe>

but if you right-click and pick "copy embed lawmaking" yous get this:

~div way="position:relative;height:0;padding-bottom:56.25%">~iframe src="https://www.youtube.com/embed/UQF4zp2I6a0?ecver=2" style="position:accented;width:100%;height:100%;left:0" width="640" tiptop="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>~/iframe>~/div>

Weird.

As the referenced thread describes, I was using standard Youtube practice. Nowadays there isn't always a "share" button - y'all have to right-click in a video and select "copy embed lawmaking." Now that's interesting. Using the "share" button, then the <> Embed pick you lot get this (< replaced with ~) : ~iframe width="560" elevation="315" src="https://www.youtube.com/embed/UQF4zp2I6a0" frameborder="0" let="autoplay; encrypted-media" allowfullscreen>~/iframe> only if yous correct-click and pick "copy embed code" y'all become this: ~div style="position:relative;acme:0;padding-bottom:56.25%">~iframe src="https://world wide web.youtube.com/embed/UQF4zp2I6a0?ecver=2" style="position:absolute;width:100%;height:100%;left:0" width="640" height="360" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>~/iframe>~/div> Weird.

Sometimes I don't notice things the kickoff few times...

The address in your instance has the parameter "ecver=two" on the URL. Mine do not have that.

When I search that, I observe threads complaining about how the div is added just when the user is logged into their GSuite business relationship (eastward.chiliad., Youtube Embed Lawmaking Problem - Google Product Forums).

I tin can't replicate that, every bit I but accept ordinary consumer Google accounts.

I gauge if that is the issue in your case, yous could launch the video in a private window equally a workaround to get a clean embed code while y'all're viewing the video logged out. That might exist faster and more authentic than cleaning up the embed lawmaking past manus.

Sometimes I don't detect things the kickoff few times... The accost in your case has the parameter "ecver=2" on the URL. Mine do not have that. When I search that, I find threads complaining about how the div is added only when the user is logged into their GSuite account (e.grand., [https://productforums.google.com/forum/#!topic/youtube/VA66jsymEmY Youtube Embed Code Problem - Google Product Forums]). I can't replicate that, equally I only have ordinary consumer Google accounts. I guess if that is the issue in your instance, you could launch the video in a private window equally a workaround to go a clean embed code while you lot're viewing the video logged out. That might be faster and more accurate than cleaning up the embed code past hand.

One further clue turned up. Youtube has fabricated changes. Earlier (3+ months agone?) there was a 'share' button below the video, which took you lot to a popup with the video URL link, and a tab "Embed" that gave you the embed lawmaking, an iframe construct.

Now you lot get all kinds of things (attached paradigm 1), but the "embed" choice nonetheless gives yous the aforementioned lawmaking - meet attached image two. But if yous right-click and select "copy embed lawmaking" (attached prototype three) you don't get a window - there is a disturbance in the video center telling you something happened, and when you go to the LSC Embed window, the "ctrl-v" choice (paste) does non work simply a right-click and 'paste' does. Encounter image 4.

And it is not the same embed lawmaking. If you endeavour it with MS Border, it is the same. So why does Youtube provide something dissimilar to Firefox?

Ane farther clue turned up. Youtube has fabricated changes. Before (3+ months ago?) at that place was a 'share' button below the video, which took y'all to a popup with the video URL link, and a tab "Embed" that gave you the embed code, an iframe construct. Now you lot get all kinds of things (attached prototype 1), but the "embed" choice still gives you the aforementioned code - come across attached epitome two. But if you right-click and select "copy embed code" (fastened image three) you lot don't get a window - there is a disturbance in the video center telling y'all something happened, and when y'all go to the LSC Embed window, the "ctrl-five" option (paste) does non work just a right-click and 'paste' does. See paradigm 4. And it is not the aforementioned embed code. If you endeavour information technology with MS Border, it is the same. So why does Youtube provide something dissimilar to Firefox?

Aha, jscher2000, give thanks you for the google link. Good to know information technology wasn't simply me! I will experiment with logging out - I have several Google accounts.

Aha, jscher2000, cheers for the google link. Adept to know it wasn't just me! I will experiment with logging out - I have several Google accounts.

Yes, it only produced the "div" when using Firefox on one account. Which doesn't explain what Firefox is doing to cause it. Maybe nothing - if I signed in on Edge it might do it? Might be something in the google cookie?

Yep, it only produced the "div" when using Firefox on one account. Which doesn't explicate what Firefox is doing to crusade information technology. Possibly null - if I signed in on Edge it might do it? Might be something in the google cookie?

Chosen Solution

I'm pretty certain the exact contents that are put on the clipboard are adamant by a script on YouTube. Google'due south scripts are very circuitous, and then I'thou non inclined to dive into them myself.

I'thou pretty sure the verbal contents that are put on the clipboard are determined by a script on YouTube. Google'south scripts are very complex, and then I'm not inclined to dive into them myself.

Source: https://support.mozilla.org/en-US/questions/1220361

Posted by: wilsonevembee.blogspot.com

0 Response to "How To Embed Youtube Videos Firefox Iframes Not Showing Up 2018"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel