% 0:04:00 J2: OK, I can give you the big picture of what this plugin does, overall. J1: Yep. J2: In the end, the news recording of every hour pops out. J1: M-hm. J2: The way this works is that there are multiple processors, so there is the central plugin and multiple processors which each handle one wave. J1: <*nods*> J2: For most of them, right after the full hour there is a check, if there is a new file on the remote share. If so, the most recent file is selected and it starts checking how the file changes size-wise. J1: <*stops nodding, looks to his upper right*> J2: I mean, it looks until the file does not get bigger anymore, then it is apparently ready. J1: M-hm J2: And then it is fetched and handed over to transcoding. J1: In what time window are you looking? J2: I start looking two minutes after the full hour, because then it’s guaranteed that news files exist if any exist. J1: OK J2: And then monitor this file as long as needed until it’s ready. That can take up to seven minutes, depending on the wave. J1: Hm ya but mh the time window for the change? J2: Yes, right, that is, er, time window for the change is variable, depends on how the news go. I can’t know that, right? You know, they always start a new file. When the news are over, again a file is created. I mean, I basically never have more than the news. J1: Yes, no, I mean ’cause you said you look for so long until the size stops changing, right? J2: M-hm J1: Then you need to plan for a time window in which a change could happen, right? J2: Yeah, well, until up to five before the hour. I really take my time. J1: No, I really mean the size now, the size of the time window, I mean (!...!) You wait for 10 seconds, then after 10 seconds you decide: In those 10 seconds nothing has changed, so the file appears to be ready. J2: Ahhh, that’s what you mean. No, 30 seconds. J1: 30 seconds, that’s what I wanted. J2: That’s 30 seconds long the time window. Now I got you. I can show it to you in a minute. J1: Yes. And the NewsPlugin is doing what in all of this? Does it do exactly this monitoring and the delegation to the individual wave plugins, or what? J2: No. The NewsPlugin basically only does (!...!) it gets called periodically by the cron server [...] % 0:06:40 % 0:13:15 J2: And it sets the remoteNewsFile, which comes out of the function getLastFile(). That’s one function we may replace later on. [...] Shall we look into the function, or not? J1: No, not now, please. J2: Not now, ok. % 0:13:43