Skip to content

Instantly share code, notes, and snippets.

@leomao10
Last active December 30, 2015 10:59
Show Gist options
  • Save leomao10/7819941 to your computer and use it in GitHub Desktop.
Save leomao10/7819941 to your computer and use it in GitHub Desktop.
Failing Prezi API
- VM10034:1 0ef9755629d2.js:2
Uncaught Error: Internal error on method getCurrentObject
(anonymous function)
d
- VM10040:1 0ef9755629d2.js:2
Uncaught Error: Internal error on method getCurrentObject
(anonymous function)
d
- 0ef9755629d2.js:2
GET https://prezi.com/api/v1/user/me/?format=json 401 (UNAUTHORIZED)
f
- VM10046:1 0ef9755629d2.js:2
Uncaught Error: Internal error on method getCurrentObject
(anonymous function) VM10046:1
d
- VM10052:1 0ef9755629d2.js:2
Uncaught Error: Internal error on method getCurrentObject
(anonymous function) VM10052:1
d
- VM10059:1 0ef9755629d2.js:2
Uncaught Error: Internal error on method getCurrentObject
(anonymous function)
d
- VM10078:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
<!DOCTYPE html>
<html lang="en">
<body>
<div id="prezi-player">
Hello
</div>
<script src="https://prezi.github.io/prezi-player/lib/PreziPlayer/prezi_player.js"></script>
<script type="text/javascript">
var player = new PreziPlayer('prezi-player', {
preziId: 'cxl1jy1chi9k',
width: '100%',
height: '800px'
});
player.on(PreziPlayer.EVENT_STATUS, function(e) {
console.debug("Hi");
if (e.value === PreziPlayer.STATUS_CONTENT_READY) {
player.play(4000);
}
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment