kore/examples/video_stream
Joris Vink 7350131232 Allow listening of tls/notls ports at the same time.
Before kore needed to be built with NOTLS=1 to be able to do non TLS
connections. This has been like this for years.

It is time to allow non TLS listeners without having to rebuild Kore.

This commit changes your configuration format and will break existing
applications their config.

Configurations now get listener {} contexts:

listen default {
	bind 127.0.0.1 8888
}

The above will create a listener on 127.0.0.1, port 8888 that will serve
TLS (still the default).

If you want to turn off TLS on that listener, specify "tls no" in that
context.

Domains now need to be attached to a listener:

Eg:
	domain * {
		attach	default
	}

For the Python API this kills kore.bind(), and kore.bind_unix(). They are
replaced with:

	kore.listen("name", ip=None, port=None, path=None, tls=True).
2019-09-27 12:27:04 +02:00
..
assets Add an html5 video streaming example 2014-08-10 19:33:43 +02:00
conf Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
src more intmax_t 2018-11-29 21:25:20 +01:00
videos Add an html5 video streaming example 2014-08-10 19:33:43 +02:00
.gitignore Add an html5 video streaming example 2014-08-10 19:33:43 +02:00
README.md kore -> kodev where appropriate 2017-03-06 11:00:53 +01:00

README.md

A simple HTML5 video streaming service using Kore.

Building:

	You must first place a test video inside the videos/ folder. I tested
	this using Big Buck Bunny (ogg version) on Chrome. But any video that
	can be played with HTML5 works.

	If you did not save your video as videos/video.ogg make sure you
	update the assets/video.html file to point to the right video.

	When done, run a kodev build.

Run:

	kodev run

Visit the URI and you should see a video stream.

Frontend parts from video.js: http://www.videojs.com/