Team:ETH Zurich/Templates/Video
From 2013.igem.org
(Difference between revisions)
(11 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | <div style="width: 90%; margin-left: auto; margin-right: auto;"> | + | <div style="width: 90%; margin-left: auto; margin-right: auto; max-width:</html>{{{width|100%}}}<html>;"> |
- | <video id="</html>{{{id|playerA}}}<html>" class="projekktor" | + | <video id="</html>{{{id|playerA}}}<html>" class="projekktor" controls </html>poster="{{{poster|}}}"<html> style="width: 100%;"> |
- | + | <source src="</html>{{{srcMP4|}}}<html>" type="video/mp4" /> | |
- | <source src=" | + | <source src="</html>{{{srcWEBM|}}}<html>" type="video/webm" /> |
</video> | </video> | ||
</div> | </div> | ||
Line 10: | Line 10: | ||
projekktor( | projekktor( | ||
'#</html>{{{id|playerA}}}<html>', // destination-container-selector-fuzz a la jQuery | '#</html>{{{id|playerA}}}<html>', // destination-container-selector-fuzz a la jQuery | ||
- | {ratio: </html>{{{ | + | { |
+ | ratio: </html>{{{ratio|16/9}}}<html> | ||
+ | }, | ||
function(player) | function(player) | ||
{ // "onready" callback - | { // "onready" callback - | ||
- | + | ||
} | } | ||
); | ); | ||
}); | }); | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</html> | </html> |
Latest revision as of 13:01, 25 October 2013