nginx-http-flv-module icon indicating copy to clipboard operation
nginx-http-flv-module copied to clipboard

Pref: Let flv live application have the ability to access the all of get request arguments.

Open seamory opened this issue 4 years ago • 0 comments

Pref: Let flv live application have the ability to access the all of get request arguments.

By add above code. Developer could analyse the argument by shell in exec command when construct the request customized. By that, developer could pull stream which need more than two arguments ($app, $name) from rtsp of hikivision, dahua, etc.

pass parameter in application:

application main {
	live on;
	wait_key on;
	gop_cache on;

	exec_pull /usr/program/nginx/script/main_code.sh $args $app $name;
	exec_kill_signal term;
}

analyse get request arguments by shell: ip=echo $1 | awk '{split($0,a,"&"); for(i in a){if (a[i] ~ /ip=/) {split(a[i], a, "="); print a[2]}}}'``

seamory avatar Dec 14 '20 02:12 seamory