Get information about updated media

Hello to all,

I am currently developing a small application to playout video content.
Now I am getting to a point where it will be very useful to know in my application whenever media content on the capsar server is updated. I think about a kind of message box or “warning” that new files are avaiable or content was deleted.

What I’m basically looking for is a possibilty to get an event or note whenever the media scanner updates its database.

Is there any possibilty to do that. Has anybody an approach to that?

I am currently using caspar server 2.3 with the media scanner.

Thanks :blush:
Ingo

i am afraid you have to “poll” CLS
or if you use the NRK media scanner you can “poll” http://ipcaspar:8000/stat/set/
which gives you a number that increases when the state off the mediafolder changes.

grt
Maurice

1 Like

Both the official and nrk media-scanner use pouchdb internally, and that is exposed over http. So it should be possible to connect to that with any couchdb compatible client and subscribe to changes

2 Likes

Thanks for the advice.
I’ll check both approaches soon.

Cheers
Ingo

Hello again,

Working with the media scanner I think I come over another issue.
Has anybody realised that the media scanner doesn’t delete media from its list that is removed?
For example, if you copy a clip in your media folder the scanner puts it on the CLS list and generates a thumbnail. But if you remove the copied clip from your folder the clip remains on the list as well as the thumbnail in the database.
Am I doing something wrong? Is there any other config I don’t know?
I’m currently running server 2.3. It seems the NRK (2.1) version works fine on this issue.

Thanks.

Ingo

By the way: Is there any possibilty to get the “quadsplit” thumbnails from the media scanner as they appear in the NRK version?