@Override
public boolean doPlayerRealize()
{
MediaLocator locator = getSource().getLocator();
// workaround because JMF does not like relative file URLs.
if (locator.getProtocol().equals("file"))
{ final String newUrl = URLUtils.createAbsoluteFileUrl(locator.toExternalForm());
if (newUrl != null)
{
final MediaLocator newSource = new MediaLocator(newUrl);
if (!locator.toExternalForm().equals(newSource.toExternalForm()))
{
logger.warning("Changing file URL to absolute, from " + locator.toExternalForm() + " to " + newSource);
locator = newSource;
}
}