0

I have the video url, i try to play that video , but it is not playing, it is downloaded. How to play the video

<div> For help <a href="https://xxx/xxx.avi" target="_blank">Watch this video</a></div>
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
chakri
  • 629
  • 3
  • 11
  • 21

1 Answers1

2

You can't embed video in an anchor tag, you have to use the html5 tag.

<video width="320" height="240" controls>
    <source src="https://xxx/xxx.mp4" type="video/mp4">
    <source src="https://xxx/xxx.ogg" type="video/ogg">
    Your browser does not support the video tag.
</video>

You can find more info in http://www.w3.org/wiki/HTML/Elements/video

Hope it helps.

Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59
  • P.S here the src="movie.mp4" but my video file is not in server, i have only the video url – chakri Oct 01 '13 at 09:46
  • @Andres Thomposon it is a third party video , we cant change the format – chakri Oct 01 '13 at 10:32
  • 1
    @AndrewThompson I agree, it was just the first link it came on google. chakri just put the whole url in your video https://xxx/xxx.avi – Jordi P.S. Oct 01 '13 at 13:45