cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
796
Views
0
Helpful
1
Replies

mediasense api subscribeToEvents

windleaf5188
Level 1
Level 1

Hello I use mediasense api 11.5.

In the subscribeToEvents API, I don't understand how to set the parameter "subscriptionUri ". My web server is 172.22.1.115:8080. With this server I send request to mediasense. So I should use http://172.22.1.115:8080/<sessionEvent> as the "subscriptionUri"? And I should create a file named "sessionEvent" in my server? This file should be empty or with some code of request?

Can you give a example of this file?

Thank you very much!

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

I'm not too familiar with the MediaSense API, but I believe this is how notifications would work, otherwise known as a 'webhook' (https://en.wikipedia.org/wiki/Webhook):

 

-When MediaSense is ready to send a notification, it will make an HTTP POST request to the specified subscriptionUri, with body containing the event detail JSON object

- You will need to have a web server listening on that URL, ready to accept the POST request, extract the JSON body, and perform the required business logic.  This would typically be your application listening on port 443/8443 (for HTTPS) for incoming messages and processing accordingly.