4

We are using following code to display video in a site.

<a width="300" height="300" href="http://www.youtube.com/embed/FEqXWwPFusI"> 

Video is displaying by covering entire monitor size.

If i click on menu_video.jpg image, it's displaying video with full size.

But I want to display the video for specific space. [width ="300" height="300" ]

Suggest me to find solution.

RajeshKdev
  • 6,365
  • 6
  • 58
  • 80
user3510279
  • 127
  • 1
  • 10

3 Answers3

2

Try This

 <iframe src="http://www.youtube.com/embed/FEqXWwPFusI" width="300" height="300"></iframe> 
Madhu
  • 2,643
  • 6
  • 19
  • 34
0

You should use video tag . try this:

<video width="400" height="400" controls>
  <source src="video file" type="video/mp4">
  <source src="video file" type="video/ogg">
</video>
0

Try this code istead

<video width="300" height="300" controls>
  <source src="http://www.youtube.com/embed/FEqXWwPFusI" type="video/mp4">
  Your browser does not support HTML5 video.
</video>

Source link

or try iframe

<iframe type="text/html" 
    width="300" 
    height="300" 
    src="http://www.youtube.com/embed/FEqXWwPFusI"
    frameborder="0">
</iframe>

or refer this question for more

Community
  • 1
  • 1
Suresh Karia
  • 17,550
  • 18
  • 67
  • 85