Update to use 'encrypted' event, and ArrayBuffers instead of Uint8Arrays.