OK, I've have made some progress with the plugin! I have upgraded Flowplayer to the latest version (3.1.5) and included the latest Pseudostreaming and RTMP plugins. There is now a new parameter in the plugin called "Streaming" which allows you to choose Progressive, Pseudostreaming or RTMP. If Pseudostreaming or RTMP is selected, the plugin now outputs the code to include the relevant Flowplayer plugin and seeking works perfectly with the direct URL to the video!
However, hwdVideoShare doesn't provide the direct URL to the player, it passes it through generateAntileechExpiration($fid, $media, $deliver) to mask the URL, which is a great idea, but breaks the seeking ability. So for the moment, I have had to test it by hardcoding the URLs into the plugin.
For pseudostreaming, a start parameter is added to the video URL and you magically start downloading it from that point. An example would be:
http://www.domain.com/hwdvideos/uploads/hr7ubdkmpww2to.mp4?start=10
But hwdVideoShare redirects using header('Location: '.$url) through a URL like this:
http://www.domain.com/index.php?option=com_hwdvideoshare&task=downloadfile&file=28&evp=02e0eb60805ab8da0dcb851cbbc6553d&media=local&deliver=player&tmpl=component
I have tried adding the start parameter to the URL and pulling it all the way through the process but it seems to get stripped out somewhere. The video does play and the seek bar lets you jump to any point, but the video always starts from the beginning.
When using the RTMP streaming plugin, the player wants a URL like this one from the Flowplayer demo:
rtmp://cyzy7r959.rtmphost.com/flowplayer/metacafe
Not surprisingly, header('Location: '.$url) doesn't work at all for RTMP and the player gives the following error:
300: Player initialization failed: TypeError: Error #1009
The simplest solution to this problem would be not to mask the URLs and then everything should work with my modified plugin. Is there an easy way to do this?
It would be nice to keep the Antileech feature so how hard to you think it would be to pull the start parameter through? Is it worth me pursuing this possible solution? As for the RTMP server, I'm not sure where to start.
I'm happy to post my modified Flowplayer plugin here, or send it to you. It might help you test any possible solutions.
Any other suggestions you have would be greatly appreciated!
Many thanks.