09-15-2009 01:58 PM
I was wondering if it's possible to create a custom datasource for RTSP?
there is no problem for streaming data from a rtsp server by passing the rtsp url to
Manager.createPlayer(rtsp_url);
it worked well. But it seemed not supporting the seekable feature, i.e., I cannot actually let the player move back and forth as expected.
My problem is: how to make a video clip seekable, i.e., users can move the progress bar back and forth?
Actually, a pre question should be: is it possible to set the media time for a streaming video data file on a remote server, considering no local copy of the data?
It was said that in order to make the data seekable, you had better create a custom datasource for buffering. Following the bufferedplayback demo code, now create the player with
Manager.createPlayer(customDataSource);
where the customDataSource makes a connection to the remote server with
Connector.open(rtsp_url) ;
But, there was a exception: ConnectionNotFoundException: No RTSP Protocol found when Connector.open() is called.
so my final queston is: can I create a custom datasource which can support a specified protocol?
thanks for any help,
andersontaylor
09-15-2009 02:26 PM
09-15-2009 02:35 PM
Thanks for the reply.
I was wondering if you can shed a light with an example for this?
andersontaylor
09-15-2009 02:43 PM