質問編集履歴
1
Videoに関するコードを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,10 +6,21 @@
|
|
6
6
|
|
7
7
|
###該当のソースコード
|
8
8
|
```Javascript
|
9
|
+
var Video = function(url) {
|
10
|
+
var thisObj = this;
|
11
|
+
this.url = url;
|
12
|
+
this.video = $('<video>').hide();
|
13
|
+
this.video.attr('src',url);
|
14
|
+
};
|
15
|
+
|
16
|
+
Video.prototype.loadVideo = function(){
|
17
|
+
this.video.get(0).load();
|
18
|
+
};
|
9
|
-
Video.prototype.draw =function(){
|
19
|
+
Video.prototype.draw =function(){
|
10
|
-
|
20
|
+
this.video.get(0).currentTime = Sound.pos();
|
11
21
|
ctx.drawImage(this.video.get(0), 0, 0, 640, 360);
|
12
22
|
};
|
23
|
+
|
13
24
|
var playVideo3 = function(){
|
14
25
|
video3.loadVideo();
|
15
26
|
selectedVideo = video3;
|