Last active
December 10, 2017 02:19
-
-
Save tifroz/5435a5a508c764c4f97e40cef12ca0b3 to your computer and use it in GitHub Desktop.
Test of the CAF queueManager interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" | |
src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"> | |
</script> | |
</head> | |
<body> | |
<cast-media-player></cast-media-player> | |
<script> | |
var context = cast.framework.CastReceiverContext.getInstance() | |
var playerManager = context.getPlayerManager() ; | |
context.start() ; | |
// This should return an empty array (instead it throws an error) | |
var items = playerManager.getQueueManager().getItems() ; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment