2007-01-26, 12:51 AM
ubu Wrote:Well actually, that's not a problem since I don't much care about the duration or playback position. I just want to know if the bugger is playing at all! Is there any way that GB-PVR can know if the MVP is currently playing an audio file or even if the playlist is empty?I havnt explicitly tested this, but you should get a play list returned with one song in it if you're playing the one and only song.
In the log, I see messages such as "End of stream", "MVP Streaming Server received STOP message" and "Song ended. Checking if there are more songs to play" but I don't know who's writing them to the log. I guess I was hoping they meant that GB-PVR did know when these events had happened.
If not, since the PluginHelper has the API available to move about in the playlist (NextPlaylistTrack, PrevPlaylistTrack, etc.) and to detect if the playlist is paused, I though there might be a way to know if it's empty (assuming that the MVP encountering the end of the only item in the list would equate to "empty").
Quote:However, if, at some point, you could provide an IsAudioFilePlaying() method that worked for both MVP and non-MVP cases, I'd be a very happy camper.Ok, I've added this for the next release.