0

I have Using Embed tag for my webpage. It is Working But FullScreen Mode Is Doesn't work it.

<embed class="embed-responsive-item" src="https://www.youtube.com/embed/EngW7tLk6R8" allowfullscreen="true">
Nigel Ren
  • 56,122
  • 11
  • 43
  • 55

1 Answers1

0

the reason it's blocked is because its in an embed tag, try using <iframe> for this:

<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/EngW7tLk6R8" allowfullscreen="true"></iframe>

the <embed> tag has no support for fullscreen mode, as shown here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed

Attributes
This element's attributes include the global attributes.

height
The displayed height of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.
src
The URL of the resource being embedded.
type
The MIME type to use to select the plug-in to instantiate.
width
The displayed width of the resource, in CSS pixels. This must be an absolute value; percentages are not allowed.

this does not include the allowfullscreen attribute whereas <iframe> does.

Ramon de Vries
  • 1,312
  • 7
  • 20