Skip to content

Instantly share code, notes, and snippets.

View CirnoV's full-sized avatar
🎯
Focusing

CirnoV (Sickle) CirnoV

🎯
Focusing
View GitHub Profile
@CirnoV
CirnoV / gist:497874073e5960934ae7d94fabf525f1
Created February 3, 2019 09:42 — forked from mharsch/gist:5188206
serve HLS (HTTP Live Streaming) content from node.js

HLS streaming from node

Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.

loosely based on https://gist.github.com/bnerd/2011232

// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory
/*
*this include file is for matrix/linear algebra support for sourcemod
*/
#if defined _matrixmath_included
#endinput
#endif
#define _matrixmath_included
public const Float:ZERO_VECTOR[3] = {0.0, 0.0, 0.0};