onBefore events
#1
I took a stroll through the bug tracker et al and didn't see this, so I wanted to pop up a discussion of it.

I'd like to receive notifications just before events are processed and intercept them, particularly in the player. Ideally, the event would only occur if the intercepting function returned True. For example, onBeforeSeekForward. If a user is playing a video that hasn't finished downloading yet and triggers a 10 minute seek forward, but less than 10 minutes worth of the file have downloaded, playback will end. Instead, I could catch the onBeforeSeekForward event and return False, stopping XBMC from seeking.I could then set a new seek point that is available.

Did I miss a PR for this, or is there an obvious problem with it?
Reply

Logout Mark Read Team Forum Stats Members Help
onBefore events0