how to display video in a php page [duplicate]

血红的双手。 提交于 2019-12-13 09:14:30

问题


<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 ??


回答1:


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>


来源:https://stackoverflow.com/questions/22879392/how-to-display-video-in-a-php-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!