In my project I need to generate two (or more in advance) different audio streams using mediafiles from united library. The simple solution - to use airtime for media file uploading and playlists' generation and running an instance of liquidsoap for each of them. Can you give me an advice - how to do it easier?
Posts: 1,526Member, Administrator, Sourcefabric Team
hi,
well, the main problem is you need common storage but different calendar. It's possible (theoretically).
You need:
- two different servers (dedicated or vps doesn't matter)
- install airtime on both servers
- make nsf exportable folder airtime/files on first server
- mount on second that folder (replace existing airtime/files on second)
- on the second postgres server replace table cc_files with view based on dblink like
CREATE VIEW cc_files AS
SELECT * FROM dblink(dbname=airtime port=5432
host=firstserver user=airtime password=airtime',
'SELECT *, pop1980 FROM cc_files');
also you need to configure postgres on first server to allow connect from second server.
Although Andrey's advice is a good start, I think there are still a lot of other problems to overcome. If we receive enough requests for this, it will be something we will consider supporting in the future.
Thanks Boris, I was following that on the mailing list, good to learn about undocumented features, dynamic sources should be very useful to us in the future