带有画布缓冲区的透明视频

时间:2017-11-15 12:24:17

标签: html5 canvas video transparent

嘿所以我在这里发现了一篇关于视频透明度如何完成的精彩帖子Can I have a video with transparent background using HTML5 video tag?。所以我搜索了一下,发现http://www.sciencelifeny.com/transparency/transparency.html#这篇文章有点像“教程”。

我尝试将该页面一对一复制,但无法将视频渲染到画布中。然后我尝试使用“SeeThru”,但也没有成功。那么有没有人自己尝试过SeeThru或者JakeArchibald.com的技术,可以告诉我我做错了什么?

<html>
<head>
    <script type="text/javascript" src="seeThru.js"></script>
</head>
<body>
    <video autoplay="" loop="" id="movingAlphaDemo">
        <source src="kolor.mp4" type="video/mp4">
    </video>
    <canvas width="720" height="1080" class="seeThru-display"></canvas>
    <canvas width="720" height="2160" class="seeThru-buffer" style="display: none;"></canvas>
</body></html>

0 个答案:

没有答案
相关问题