1.上传视频的页面
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
<meta charset="UTF-8">
<title>Gary_Video</title>
</head>
<body>
<h1>Gary上传视频</h1>
<from id="from1">
<input id="uploadVideoNow-file" type="file" onchange="changeInput(this)" style="display:none;">
</from>
<!-- a标签,当点击之后,执行change函数中的内容 -->
<a id="uploadVideoNow" href="javascript:void(0);" onclick="change()">点击上传视频</a>
<!-- 在web中引入sdk,js -->
<script src="//imgcache.qq.com/open/qcloud/js/vod/sdk/ugcUploader.js"></script>
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript" th:inline="javascript">
var getSignature = function(callback)
{
$.ajax({
url:"/api/tengxun/sign",

本文介绍了如何在Java环境下实现腾讯云视频上传功能,包括创建上传视频页面、构建相关类,并详细讲解了利用腾讯云API进行签名加密的过程。
最低0.47元/天 解锁文章
2457

被折叠的 条评论
为什么被折叠?



