diff --git a/src/bin-utils.js b/src/bin-utils.js index ae675bc0c..6bea9097d 100644 --- a/src/bin-utils.js +++ b/src/bin-utils.js @@ -1,3 +1,5 @@ +import { isArrayBufferView } from '@videojs/vhs-utils/es/byte-helpers'; + /** * @file bin-utils.js */ @@ -48,7 +50,7 @@ export const createTransferableMessage = function(message) { Object.keys(message).forEach((key) => { const value = message[key]; - if (ArrayBuffer.isView(value)) { + if (isArrayBufferView(value)) { transferable[key] = { bytes: value.buffer, byteOffset: value.byteOffset,