2015-05-04, 20:15
If you are running Kodi with the TVHeadEnd PVR addon then you know that by default Kodi will display a message at the top of the screen whenever TVHeadEnd starts recording a program, or has finished recording a program, or under certain other circumstances. What I'd like to know is how that is done and whether it's possible to send a custom message from the backend to be displayed in Kodi.
My reason is this: For one channel I need to do some post-processing with ffmpeg before the program can be played in Kodi, due to the non-standard way they send their audio. There is a post-processing script set up to do this on the TVHeadEnd backend system, but it takes a certain amount of time to run, generally around a couple minutes but it could be longer or shorter depending on the original program duration and the current load on the system. What I'd like to be able to do is insert a line into the bash script before the conversion process starts, that says something like "starting post-processing of (program name)" and then when the script completes, I'd like to insert another line that says "post-processing of (program name) completed." And I want to send those messages to all Kodi clients that are running at the time on the local network (not just a single system, nor directed to any specific IP address). In other words I want these messages to go out using the same mechanism that the messages that indicate the start and end of a recording use.
Is this possible, and if so, how do I do it?
My reason is this: For one channel I need to do some post-processing with ffmpeg before the program can be played in Kodi, due to the non-standard way they send their audio. There is a post-processing script set up to do this on the TVHeadEnd backend system, but it takes a certain amount of time to run, generally around a couple minutes but it could be longer or shorter depending on the original program duration and the current load on the system. What I'd like to be able to do is insert a line into the bash script before the conversion process starts, that says something like "starting post-processing of (program name)" and then when the script completes, I'd like to insert another line that says "post-processing of (program name) completed." And I want to send those messages to all Kodi clients that are running at the time on the local network (not just a single system, nor directed to any specific IP address). In other words I want these messages to go out using the same mechanism that the messages that indicate the start and end of a recording use.
Is this possible, and if so, how do I do it?