回答編集履歴
2
</html>タグを追記。
answer
CHANGED
@@ -53,6 +53,7 @@
|
|
53
53
|
});
|
54
54
|
</script>
|
55
55
|
</body>
|
56
|
+
</html>
|
56
57
|
```
|
57
58
|
|
58
59
|
参考
|
1
head、bodyのhtmlタグを修正!
answer
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
<head>
|
7
7
|
<meta charset="UTF-8">
|
8
8
|
<title></title>
|
9
|
-
<head>
|
10
9
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
|
11
10
|
<style type="text/css">
|
12
11
|
canvas{
|
@@ -32,12 +31,13 @@
|
|
32
31
|
if (current > 15) {
|
33
32
|
return;
|
34
33
|
}
|
35
|
-
capture()
|
34
|
+
capture();
|
36
35
|
current += 5;
|
37
36
|
this.currentTime = current;
|
38
37
|
};
|
39
38
|
video.onloadeddata = function(){
|
40
|
-
|
39
|
+
this.currentTime = 0;
|
40
|
+
current = 0;
|
41
41
|
};
|
42
42
|
$("#file").change(function(){
|
43
43
|
video.src = (URL).createObjectURL(this.files[0]);
|
@@ -52,6 +52,7 @@
|
|
52
52
|
}
|
53
53
|
});
|
54
54
|
</script>
|
55
|
+
</body>
|
55
56
|
```
|
56
57
|
|
57
58
|
参考
|