Question

<body>
  <video width="320" height="240" controls autoplay>
    <object data="movie.mp4" width="320" height="240">
        <embed width="320" height="240" src="Priyanka Chopra - Exotic ft. Pitbull - YouTube.MP4">
    </object>
  </video>
</body>

I am trying to display a video in my php web page but it is not playing it....the video is present on folder but not displaying it...above is the code that i tried.....can anyone help me ??

Was it helpful?

Solution

Video:

<video width="320" height="240" controls autoplay>
  <source src="Priyanka Chopra - Exotic ft. Pitbull - YouTube.MP4" type="video/mp4">
  Sorry, your browser doesn't support the video element.
</video>

Audio:

<audio controls>
  <source src="horse.mp3" type="audio/mpeg">
  Sorry, your browser does not support the audio element.
</audio>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top