根据凭证播放阿里云视频测试
Posted upupup-999
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了根据凭证播放阿里云视频测试相关的知识,希望对你有一定的参考价值。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.8.1/skins/default/aliplayer-min.css" />
<script charset="utf-8" type="text/javascript" src="https://g.alicdn.com/de/prismplayer/2.8.1/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="J_prismPlayer"></div>
<script>
var player = new Aliplayer({
id: \'J_prismPlayer\',
width: \'100%\',
autoplay: false,
cover: \'http://liveroom-img.oss-cn-qingdao.aliyuncs.com/logo.png\',
encryptType:\'1\',//如果播放加密视频,则需设置encryptType=1,非加密视频无需设置此项
vid : \'d9c6ebe8a4ce424e89e524b8614146ac\',
playauth : \'eyJTZWN1cml0eVRva2VuIjoiQ0FJU2h3TjFxNkZ0NUIyeWZTaklyNWYvQ0lpRjNJeFQ3b3F0U0UzbzFsSnNlYjE2dXZIWTFqejJJSDlJZEhWb0FPOGZ2dlUwbTJ0WTdQc1psck1xRzhVVkdoV2ROcFV2dDg0TnExendKcExGc3QySjZyOEpqc1YwcktKZS9GbXBzdlhKYXNEVkVmbDJFNVhFTWlJUi8wMGU2TC8rY2lyWXBUWEhWYlNDbFo5Z2FQa09Rd0M4ZGtBb0xkeEtKd3hrMnQxNFVtWFdPYVNDUHdMU2htUEJMVXhtdldnR2wyUnp1NHV5M3ZPZDVoZlpwMXI4eE80YXhlTDBQb1AyVjgxbExacGxlc3FwM0k0U2M3YmFnaFpVNGdscjhxbHg3c3BCNVN5Vmt0eVdHVWhKL3phTElvaXQ3TnBqZmlCMGVvUUFQb3BGcC9YNmp2QWF3UExVbTliWXhncGhCOFIrWGo3RFpZYXV4N0d6ZW9XVE84MCthS3p3Tmx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AxNjNlMWM3NDI2Lm9zcy1jbi1zaGFuZ2hhaS5hbGl5dW5jcy5jb20vZDljNmViZThhNGNlNDI0ZTg5ZTUyNGI4NjE0MTQ2YWMvc25hcHNob3RzL2UzYmU0YTM0MTVmYTRjYTQ5ZjgyZTQ3MjM3ZWIwZjJmLTAwMDAxLmpwZz9FeHBpcmVzPTE2MjMzMDc4NjEmT1NTQWNjZXNzS2V5SWQ9TFRBSXJrd2IyMUt5R2pKbCZTaWduYXR1cmU9dCUyRjRqbmNNSHhUQ0RFaHhXMnZaTkU0aVQzOU0lM0QiLCJEdXJhdGlvbiI6MTYuMjc2N30sIkFjY2Vzc0tleUlkIjoiU1RTLk5USkMyMTFTcllIRkprWTJSOXUyVlU0czQiLCJBY2Nlc3NLZXlTZWNyZXQiOiI2Uk1iN0U0cW00Q0JBS2pSZHJUaVpVNUZmSmlGNFNWaWE2UFZHWVQ0RnR0QSIsIlJlZ2lvbiI6ImNuLXNoYW5naGFpIiwiQ3VzdG9tZXJJZCI6MTgyODcxMTM2NzEyMjI3OX0\',
},function(player){
console.log(\'播放器创建好了。\')
});
</script>
</body>
</html>
以上是关于根据凭证播放阿里云视频测试的主要内容,如果未能解决你的问题,请参考以下文章