我可以使用< s:url action ='downappsuservideo'/>
成功打开从BLOB读取的视频,但是当我将它放入embed标签时它不起作用。
如何在页面内播放?


 < embed src =“< s:url action ='downappsuservideo'/>” 
 type =“application / x-shockwave-flash”
 pluginspage =“http://www.microsoft.com/Windows/MediaPlayer/”
 name =“mediaplayer1”
 ShowStatusBar =“true”
 EnableContextMenu =“false”
 width =“700”
 height =“500”
 autostart =“false”
 loop =“false”
 align =“middle”
体积= “60” >
 < /嵌入>
 代码>


答案 0 :(得分:0)
您不需要iframe或embed标记。只需使用HTML5 <video>
tag这是新的标准方法:
<video src = "<s:url action='downappsuservideo'/>"
autoplay = "false"
width = "700"
height = "500"
loop = "false"
poster = "posterimage.jpg">
Sorry, your browser doesn't support embedded videos,
but don't worry, you can <a href="<s:url action='downappsuservideo'/>">download it</a>
and watch it with your favorite video player!
</video>