nginx-vod-module
nginx-vod-module copied to clipboard
Hi, I trying to use vod_notification_uri....
Can somebody explain me how to set vod_notification_uri
Thanks in advance
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.
Big thanks. I will test and will post here the result.
Regards
Big thanks. I will test and will post here the result.
Regards
Hello.
Did you get it to work?