{
skipped = m_audioInputStream.skip(bytes - totalSkipped);
if (skipped == 0) break;
totalSkipped = totalSkipped + skipped;
log.info("Skipped : " + totalSkipped + "/" + bytes);
if (totalSkipped == -1) throw new BasicPlayerException(BasicPlayerException.SKIPNOTSUPPORTED);
}
}
}
notifyEvent(BasicPlayerEvent.SEEKED, getEncodedStreamPosition(), -1, null);
m_status = OPENED;
if (previousStatus == PLAYING) startPlayback();
else if (previousStatus == PAUSED)
{
startPlayback();
pausePlayback();
}
}
catch (IOException e)
{
throw new BasicPlayerException(e);
}
}
return totalSkipped;
}