Created
July 21, 2015 01:29
-
-
Save MeoMix/d41c20c64c7e00ea9561 to your computer and use it in GitHub Desktop.
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
// Notify background of video information data necessary to render the video on another page. | |
// The type of video (including codec) as well as the ArrayBuffer of video data. | |
var message = { | |
buffer: this.response.slice(0), | |
bufferType: videoInfo.type | |
}; | |
// Be sure to mark the buffer as transferable as it can be a large amount of data. | |
window.top.postMessage(message, origin, [message.buffer]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment