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:
parent
166761483d
commit
ca98a86b30
5 changed files with 18 additions and 1 deletions
|
@ -42,3 +42,8 @@ $ curl -sLO http://localhost:8080/test.txt
|
||||||
$ cat test.txt
|
$ cat test.txt
|
||||||
If you read this then the static file server works!
|
If you read this then the static file server works!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
HTML5 Video Example
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Open http://localhost:8080/video.html in your favorite browser.
|
||||||
|
|
BIN
examples/static/priv/small.mp4
Normal file
BIN
examples/static/priv/small.mp4
Normal file
Binary file not shown.
BIN
examples/static/priv/small.ogv
Normal file
BIN
examples/static/priv/small.ogv
Normal file
Binary file not shown.
11
examples/static/priv/video.html
Normal file
11
examples/static/priv/video.html
Normal 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>
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
erl -pa ebin deps/*/ebin -s static \
|
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\")."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue