Menu

#2 problems with "%20" as space.

open
nobody
None
5
2009-02-03
2009-02-03
Anonymous
No

MediaLocator ml = new MediaLocator("file:/"+path);
Manager.createDataSource(ml);

this will not work (if the file is on the harddisk) if path contains "%20" instead of spaces... However, the own codecs of JMF handle these correctly. This can cause lots of confusion since "file:/" implicates it's an URL you need to provide, thus, with "%20".

So either handle these correctly, or give a warning when a user thries to use a path with "%20" in it.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.