Created
October 24, 2013 16:30
-
-
Save dmlap/7140421 to your computer and use it in GitHub Desktop.
Send an ajax request with an arraybuffer response
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
var req = new XMLHttpRequest(); | |
req.open('GET', segmentUrl, true); | |
req.responseType = 'arraybuffer'; | |
req.onload = function(response) { | |
self.onSegmentLoadComplete(new Uint8Array(req.response)); | |
}; | |
req.send(null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment