I think it would be cleaner to put the call to getVideoRotation() earlier. Line 31 is also an if (blob)  statement. Can you get the rotation there?  

if (blob) {
  // create url
  // deal with the save stuff
  // get rotation with a callback function that calls showPlayer when rotation is avilable
}
else { // the url case
  showPlayer(url, title)
}
}