Skip to content

Instantly share code, notes, and snippets.

@ignacy
Created June 17, 2011 07:31
Show Gist options
  • Select an option

  • Save ignacy/1031015 to your computer and use it in GitHub Desktop.

Select an option

Save ignacy/1031015 to your computer and use it in GitHub Desktop.
private void handleStreamPlayback(RegisterAccess register) {
XletLogger.log("Handle stream playback");
discNavigator = new ProgresivePlaylistNavigator(this);
discNavigator.init();
guiContainer.setVisible(true);
guiContainer.requestFocus();
guiContainer.repaint();
int state = register.getGPR(0);
register.setGPR(0, state + 1);
XletLogger.log("In handleStreamPlayback " + state);
if (state == 0) {
try {
XletLogger.log("******* In handleStreamPlayback step 1 **");
VfsOperationsManager.prepareForVFSUpdate(budaPath);
VfsOperationsManager.doVFSUpdate(budaPath);
XletLogger.log("restart title with context: " + context);
VfsOperationsManager.restartTitle(this.context);
} catch (Exception e) {
register.setGPR(0, 0);
XletLogger.log("Blad w step1 ", e);
}
} else {
try {
XletLogger.log("****** In handleStreamPlayback step 2 ***");
startProgressivePlaylist();
} catch (Exception e) {
XletLogger.log("Exception in step 2 of StreamPlayback process", e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment