+ All Categories
Home > Documents > Mume HTML5 Intro

Mume HTML5 Intro

Date post: 14-Dec-2014
Category:
Upload: gonzalo-parra
View: 250 times
Download: 1 times
Share this document with a friend
Description:
 
32
Multimedia HTML5 Erik Duval Dept. Computerwetenschappen http://www.cs.kuleuven.ac.be/~erikd/
Transcript
Page 1: Mume HTML5 Intro

Multimedia

HTML5

Erik DuvalDept. Computerwetenschappen

http://www.cs.kuleuven.ac.be/~erikd/

Page 3: Mume HTML5 Intro

wat denken jullie?

3

Page 4: Mume HTML5 Intro

4

http://www.w3.org/TR/html5/

Page 5: Mume HTML5 Intro

4

http://www.w3.org/TR/html5/

Page 6: Mume HTML5 Intro

“flash assassin”

5

Page 7: Mume HTML5 Intro
Page 8: Mume HTML5 Intro

7

http://www.apple.com/html5/

Page 9: Mume HTML5 Intro

html5

• work-in-progress

• ‘most modern browsers some support’

8

Page 10: Mume HTML5 Intro

9

Page 11: Mume HTML5 Intro

10

Page 12: Mume HTML5 Intro

11

Page 13: Mume HTML5 Intro

<!DOCTYPE html><html><body>

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">

Your browser does not support the canvas element.

</canvas>

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

cxt.fillStyle="#FF0000";

cxt.fillRect(0,0,150,75);

</script></body></html> 12

Page 14: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

cxt.moveTo(10,10);

cxt.lineTo(150,50);

cxt.lineTo(10,50);

cxt.stroke();

</script>

13

Page 15: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

cxt.moveTo(10,10);

cxt.lineTo(150,50);

cxt.lineTo(10,50);

cxt.stroke();

</script>

13

Page 16: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

cxt.fillStyle="#FF0000";

cxt.beginPath();

cxt.arc(70,18,15,0,Math.PI*2,true);

cxt.closePath();

cxt.fill();

</script>14

Page 17: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

cxt.fillStyle="#FF0000";

cxt.beginPath();

cxt.arc(70,18,15,0,Math.PI*2,true);

cxt.closePath();

cxt.fill();

</script>14

Page 18: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

var img=new Image();

img.src="img_flwr.png";

cxt.drawImage(img,0,0);

</script>

15

Page 19: Mume HTML5 Intro

<script type="text/javascript">

var c=document.getElementById("myCanvas");

var cxt=c.getContext("2d");

var img=new Image();

img.src="img_flwr.png";

cxt.drawImage(img,0,0);

</script>

15

Page 20: Mume HTML5 Intro

<!DOCTYPE html>

<html>

<body>

<audio controls="controls">

<source src="song.ogg" type="audio/ogg" />

<source src="song.mp3" type="audio/mpeg" />

Your browser does not support the audio element.

</audio>

</body>

</html>16

Page 21: Mume HTML5 Intro

<audio>

17

Page 22: Mume HTML5 Intro

<video><!DOCTYPE html><html><body>

<video controls="controls" autoplay="autoplay">

<source src="movie.mp4" type="video/mp4" />

<source src="movie.ogg" type="video/ogg" />

  <source src="movie.webm" type="video/webm" />

Your browser does not support the video tag.

</video>

</body></html>18

Page 23: Mume HTML5 Intro

• zonder plug-in (flash)

19

Page 24: Mume HTML5 Intro

20

http://www.youtube.com/html5

Page 25: Mume HTML5 Intro

21

Page 26: Mume HTML5 Intro

22

<script type="text/javascript">if (localStorage.n) { localStorage.n=Number(localStorage.n) +1; }else { localStorage.n=1; }document.write("Visits: " + localStorage.n + " time(s).");</script>

<p>Refresh the page to see the counter increase.</p><p>Close the browser window, and try again, and the counter will continue.</p>

Page 28: Mume HTML5 Intro

24

http://thewildernessdowntown.com/

Page 29: Mume HTML5 Intro

25

Page 30: Mume HTML5 Intro

26

Page 31: Mume HTML5 Intro

resources & thx

• @kristofvc, @snakeflash

• +Steven Roose, +Bram Luyten

• http://www.w3schools.com/html5/

• http://www.designzzz.com/getting-to-know-html5/

• http://www.mobilehtml5.com/post/371921120/tutorial-your-first-mobile-html5-app-the-basics

• http://www.slideshare.net/whafro/up-to-speed-on-html-5-and-css-3

• http://html5doctor.com/

• http://www.html5rocks.com/en/

• http://mrdoob.com/92/Google_Gravity

27

Text

Page 32: Mume HTML5 Intro

28

Questions?

http://erikduval.wordpress.com/twitter: @ErikDuval


Recommended