jsp网站怎么加入视频
1个回答
展开全部
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>播放器</title>
</head>
<%
String str=request.getParameter("movie");
%>
<body>
<p><%=str %></p>
<video controls="controls" autoplay="autoplay">
<source src="视频路径" type="video/mp4"/>
</video>
</body>
</html>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>播放器</title>
</head>
<%
String str=request.getParameter("movie");
%>
<body>
<p><%=str %></p>
<video controls="controls" autoplay="autoplay">
<source src="视频路径" type="video/mp4"/>
</video>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询