equal
deleted
inserted
replaced
11 |
11 |
12 var videoEl = IriSP.jQuery('<video>'); |
12 var videoEl = IriSP.jQuery('<video>'); |
13 |
13 |
14 videoEl.attr({ |
14 videoEl.attr({ |
15 width : opts.width || undefined, |
15 width : opts.width || undefined, |
16 height : opts.height || undefined |
16 height : opts.height || undefined, |
|
17 controls : opts.controls || undefined, |
|
18 autoplay : opts.autostart || opts.autoplay || undefined |
17 }); |
19 }); |
18 |
20 |
19 if(typeof videoURL === "string"){ |
21 if(typeof videoURL === "string"){ |
20 videoEl.attr("src",videoURL); |
22 videoEl.attr("src",videoURL); |
21 } else { |
23 } else { |
28 videoEl.append(_srcNode); |
30 videoEl.append(_srcNode); |
29 } |
31 } |
30 } |
32 } |
31 |
33 |
32 jqselector.html(videoEl); |
34 jqselector.html(videoEl); |
33 |
|
34 if (opts.autostart || opts.autoplay) { |
|
35 videoEl.attr("autoplay", true); |
|
36 } |
|
37 |
35 |
38 var mediaEl = videoEl[0]; |
36 var mediaEl = videoEl[0]; |
39 |
37 |
40 // Binding HTML video functions to media events |
38 // Binding HTML video functions to media events |
41 media.on("setcurrenttime", function(_milliseconds) { |
39 media.on("setcurrenttime", function(_milliseconds) { |