0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add HTML5 Video Example to the static example

This commit is contained in:
Loïc Hoguin 2013-01-22 17:19:39 +01:00
parent 166761483d
commit ca98a86b30
5 changed files with 18 additions and 1 deletions

View file

@ -42,3 +42,8 @@ $ curl -sLO http://localhost:8080/test.txt
$ cat test.txt
If you read this then the static file server works!
```
HTML5 Video Example
-------------------
Open http://localhost:8080/video.html in your favorite browser.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<body>
<h1>HTML5 Video Example</h1>
<video controls>
<source src="small.ogv" type="video/ogg"/>
<source src="small.mp4" type="video/mp4"/>
</video>
<p>Videos taken from <a href="http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5/">TechSlides</a></p>
</body>
</html>

View file

@ -1,3 +1,4 @@
#!/bin/sh
erl -pa ebin deps/*/ebin -s static \
-eval "io:format(\"Point your browser at http://localhost:8080/test.txt~n\")."
-eval "io:format(\"Point your browser at http://localhost:8080/test.txt~n\")." \
-eval "io:format(\"Point your browser at http://localhost:8080/video.html~n\")."