diff options
Diffstat (limited to 'tools/videotimeline/vsrv.php')
-rw-r--r-- | tools/videotimeline/vsrv.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/videotimeline/vsrv.php b/tools/videotimeline/vsrv.php index 2a6830c1b0..fb0c98f6d4 100644 --- a/tools/videotimeline/vsrv.php +++ b/tools/videotimeline/vsrv.php @@ -16,6 +16,14 @@ if (isset($_SERVER['PATH_INFO'])) { case '/info': $mode='info'; break; + case '/rc': + case '/rc/': + # TODO proper CSV encode (possible quotes in docroot) + # TODO support optional plain text version + echo '"'.$docroot.'",'.$_SERVER['SERVER_ADDR'].','.$_SERVER['SERVER_PORT'].',0,"/info /rc /status",""'."\n"; + echo 'status: ok, online.'; + exit; + break; default: break; } @@ -39,6 +47,9 @@ if (isset($_REQUEST['format'])) { case 'rgba': $fmt='rgba'; break; + case 'bgra': + $fmt='bgra'; + break; case 'rgb': $fmt='rgb'; break; @@ -91,6 +102,17 @@ else if (preg_match('@Video:.* ([0-9]+x[0-9]+),@m',$nfo, $m)) { } if ($mode=='info') { + if (isset($_REQUEST['format'])) { + switch ($_REQUEST['format']) { + case 'csv': + # protocol, width, height, aspect, fps, fps, duration + echo "1,0,0,$ar,$fr,$df\n"; + exit; + break; + default: + break; + } + } # Protocol Version number # FPS # duration (in frames) |