質問編集履歴
1
Videoに関するコードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,13 +14,35 @@
|
|
14
14
|
|
15
15
|
```Javascript
|
16
16
|
|
17
|
-
Video
|
17
|
+
var Video = function(url) {
|
18
18
|
|
19
|
+
var thisObj = this;
|
20
|
+
|
21
|
+
this.url = url;
|
22
|
+
|
23
|
+
this.video = $('<video>').hide();
|
24
|
+
|
25
|
+
this.video.attr('src',url);
|
26
|
+
|
27
|
+
};
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
Video.prototype.loadVideo = function(){
|
32
|
+
|
33
|
+
this.video.get(0).load();
|
34
|
+
|
35
|
+
};
|
36
|
+
|
37
|
+
Video.prototype.draw =function(){
|
38
|
+
|
19
|
-
this.video.get(0).currentTime = Sound.pos();
|
39
|
+
this.video.get(0).currentTime = Sound.pos();
|
20
40
|
|
21
41
|
ctx.drawImage(this.video.get(0), 0, 0, 640, 360);
|
22
42
|
|
23
43
|
};
|
44
|
+
|
45
|
+
|
24
46
|
|
25
47
|
var playVideo3 = function(){
|
26
48
|
|