You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoT/IoTServices/SingalDemo/Views/Home/Index.cshtml

34 lines
1.0 KiB

@{
Layout = null;
}
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
@for (int i = 0; i < 10; i++)
{
<div>
<a href="/Home/Command/?command=play&args=@(i+1)" target="_blank">视频 @(i + 1)</a>
</div>
}
<div>
<a href="/Home/Command/?command=stop" target="_blank">停止</a>
<a href="/Home/Command/?command=pause" target="_blank">暂停</a>
<a href="/Home/Command/?command=si" target="_blank">快进</a>
<a href="/Home/Command/?command=sd" target="_blank">快退</a>
<a href="/Home/Command/?command=vi" target="_blank">音量+</a>
<a href="/Home/Command/?command=vd" target="_blank">音量-</a>
</div>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script>
$('a').click(function () {
var url = $(this).attr('href');
setTimeout(function () {
$.get(url);
}, 0);
return false;
});
</script>
</body>
</html>