how to run a video clip using asp.net?

前端 未结 2 339
面向向阳花
面向向阳花 2021-01-29 12:21

I want to embed video player in asp.net which can support multi video formats and can run same format clip in different browsers. i.e mp4/ogg clip can be played on firfox as wel

相关标签:
2条回答
  • 2021-01-29 12:39

    Nothing to do with asp.net (this is pure html stuff), just write out a html video tag

    html5rocks

    diveintohtml5

    0 讨论(0)
  • 2021-01-29 12:54

    May I suggest this simple code:

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

    Source: W3Schools

    You can use swf files, if you want, in this way:

    <embed src="sourceSWF.swf" height="200" width="200">
    

    Good luck!

    0 讨论(0)
提交回复
热议问题