1. Enable stream API in config.php: define('OB_STREAM_API',true);
2. Run transcode.sh in background (suggest @reboot cron entry).
3. Alias stream directory to /streams/ and add Access-Control-Allow-Origin: *
Lighttpd Example:
$HTTP["url"] =~ "^/streams/" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
$HTTP["url"] =~ "^/tools/stream/captions" {
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
}
alias.url = ("/streams/" => "/path/to/cache/streams/")
Apache2 Example:
Alias "/streams" "/path/to/cache/streams"