我有一个表格,其中3列,其中一个是问题栏,另一个是录制视频,最后一个是上传
我的问题是,当用户点击记录按钮时,我们会记录两个小视频
并在本地保存PC等。
我正在使用记事本,互联网信息服务和前端在aspx和后端在vb .net
我有这个代码检查它这是我存储在IIS服务器上的aspx文件扩展名并使用它see this pic
<%@ Page Language="VB" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Configuration" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Web.Security" %>
<%@ Import Namespace="AForge.Video" %>
<%@ Import Namespace="AForge.Video.DirectShow" %>
<script runat="server">
Protected Sub Button1_Click(sender As Object, e As EventArgs)
' here to write a code for record a video
End Sub
</script>
<!DOCTYPE html>
<html>
<head>
<Style>
#center_div
{
position: absolute;
height: 200px;
width: 850px;
margin: -100px 0 0 -200px;
top:20%;
left: 30%;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
th {
background-color: #4CAF50;
color: white;
}
table, th, td {
border: 1px solid black;
}
th {
display: table-cell;
vertical-align: inherit;
font-weight: bold;
text-align: center;
}
</Style>
<title> Sign Up </title>
</head>
<body>
<div id="center_div">
<form runat="server" id="myform">
<fieldset>
<legend>Answers the Question:</legend>
<table>
<tr>
<th>Question</th><th>Record Videos</th><th>Upload</th>
</tr>
<tr>
<td class="label" Style="width:500px">What is Your Name and Why we Take Admission in our university </td><td Style="width:200px"> <asp:Button ID="Button9" runat="server" Text="Record" onClick="Button1_Click" /></td>
<td Style="width:200px"> <asp:Button ID="Button3" runat="server" Text="Upload" onClick="Button1_Click" /></td>
</tr>
<tr>
<td class="label" Style="width:500px">Why you Select this univeristy for Study </td><td Style="width:200px"> <asp:Button ID="Button10" runat="server" Text="Record" onClick="Button1_Click" /></td>
<td Style="width:200px"> <asp:Button ID="Button30" runat="server" Text="Upload" onClick="Button1_Click" /></td>
</tr>
<tr>
<td class="label" Style="width:500px">Why you Select this univeristy for Study </td><td Style="width:200px"> <asp:Button ID="Button101" runat="server" Text="Record" onClick="Button1_Click" /></td>
<td Style="width:200px"> <asp:Button ID="Button301" runat="server" Text="Upload" onClick="Button1_Click" /></td>
</tr>
</table>
<asp:Button ID="Button2" runat="server" Text="Submit" onClick="Button1_Click" />
<asp:Label ID = "Label2" runat = "server" text="" Style="color:red"> </asp:Label>
</form>
</div>
</body>
</html>
答案 0 :(得分:0)
用于录制视频Directx Library用于c#
但在Asp .net应用程序中无法在客户端机器上使用Directx。因此可选择闪存,银色灯或Html 5.
所以我通过使用Jquery插件录制视频来解决我的问题。
这个插件记录我的视频和存储在我的电脑上。为了录制视频,它是非常好的插件,用于在asp .net上记录服务器端的视频。