2014-01-11, 06:51
Hi,
I'm developing plugin to playback some online video sources and that remote server doesn't support seek commands. To perform seek I have to reissue url with new start/shift parameters. In order to accomplish that I created service script to catch onPlayBackSeek event. And it works fine beside one thing. I cannot find a difference between StepForward and BigStepForward buttons.As you know, one of them move stream 30 sec and other 10 min ahead. onPlayBackSeek provides seekOffset. But it never gives me something close to 30 or 10 minutes. It always gives numbers, which it could move based on a filled stream buffer value. If buffer has data for extra 5 seconds to play it gives me value close to 5000 and never 30000 or 600000. So, how can I get which button led to this particular event?
Another related question. On any pressed step forward button player tries to actually perform a seek command, then it gets error back, because server doesn't support that and only after that calls that event function. Can I catch that button press before player calls a seek? It'd help to speed up whole process and avoid unnecessary errors.
I'm developing plugin to playback some online video sources and that remote server doesn't support seek commands. To perform seek I have to reissue url with new start/shift parameters. In order to accomplish that I created service script to catch onPlayBackSeek event. And it works fine beside one thing. I cannot find a difference between StepForward and BigStepForward buttons.As you know, one of them move stream 30 sec and other 10 min ahead. onPlayBackSeek provides seekOffset. But it never gives me something close to 30 or 10 minutes. It always gives numbers, which it could move based on a filled stream buffer value. If buffer has data for extra 5 seconds to play it gives me value close to 5000 and never 30000 or 600000. So, how can I get which button led to this particular event?
Another related question. On any pressed step forward button player tries to actually perform a seek command, then it gets error back, because server doesn't support that and only after that calls that event function. Can I catch that button press before player calls a seek? It'd help to speed up whole process and avoid unnecessary errors.