HI Stephan, I have now done a review of your proposed changes for wider protocol support and they look sound, and are now merged with svn/trunk. I won't be merging the changes with the OSG-2.8 branch as these would change the API. The OSG-2.8 branch is now just in maintenance mode so should just receive bug fixes.
Robert. On Thu, Feb 12, 2009 at 3:42 PM, Stephan Maximilian Huber <[email protected]> wrote: > Hi Robert, > > This submission is intended for 2.8.x. / 2.9.x, no need to hurry :) > > Currently there's AFAIK one drawback with osg, it supports only the > http-protocol. Attached you'll find a proposal for using different > protocols. The idea behind the new code is: > > 1.) plugins/apps register protocols which they can handle. This is done > via osgDB::Registry::registerProtocol(aProtocolName). Plugins register > supported protocols as usual via ReaderWriter::supportsProtocol(..), the > Registry is updated accordingly. > > 2.) osgDB::containsServerAddress checks first for an appearance of "://" > in the filename and then checks the protocol against the set of > registered protocols via Registry::isProtocolRegistered(aProtocollName) > > 3.) the other getServer*-functions changed as well, there's even a > getServerProtocol-function > > > With these changes filenames/Urls get routed to loaded plugins even with > different protocols than 'http'. > > my test-case: > osgmovie -e qt rtsp://192.168.1.244/mystream.dsp > > These changes are a first, rough idea how to handle this, I am not sure > if I tackled every use case right ... > > I hope you'll find the submission useful. > > cheers, > Stephan > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
