nginx-vod-module icon indicating copy to clipboard operation
nginx-vod-module copied to clipboard

Hi, I trying to use vod_notification_uri....

Open fioleta72 opened this issue 3 years ago • 3 comments

Can somebody explain me how to set vod_notification_uri

Thanks in advance

fioleta72 avatar Nov 10 '20 15:11 fioleta72

I haven't used it for years, it was part of some POC... But you need to use mapped mode, the JSON would be something like this -

{
	"sequences": [{
		"clips": [{
			"type": "source",
			"path": "/path/to/video.mp4"
		}]
	}],
	"notifications": [{
		"offset": 50000,
		"id": "test"
	}]
}

And in nginx.conf you'd have something like:

vod_notification_uri /notif/id/$vod_notification_id

In this example, when the segment that contains the offset 50 sec is pulled, the module will call the location /notif/id/test. This location should include a proxy_pass directive to some upstream server.

erankor avatar Dec 18 '20 17:12 erankor

Big thanks. I will test and will post here the result.

Regards

fioleta72 avatar Dec 18 '20 18:12 fioleta72

Big thanks. I will test and will post here the result.

Regards

Hello.

Did you get it to work?

ratiboo avatar Jun 19 '21 04:06 ratiboo