mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
feat: add support for <video> elements (#2788)
This commit is contained in:
committed by
GitHub
parent
46db86755f
commit
181d1b1103
20
tests/reftests/images/video.html
Normal file
20
tests/reftests/images/video.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Video tests</title>
|
||||
<script type="text/javascript" src="../../test.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Same origin</h2>
|
||||
<video controls width="250">
|
||||
<source src="../../assets/cc0-video.mp4" type="video/mp4">
|
||||
Sorry, your browser doesn't support embedded videos.
|
||||
</video>
|
||||
<h2>Cross-origin (doesn't taint)</h2>
|
||||
<video controls width="250">
|
||||
<source src="http://localhost:8081/cors/tests/assets/cc0-video.mp4" type="video/mp4">
|
||||
Sorry, your browser doesn't support embedded videos.
|
||||
</video>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user