Added onReceivedContentStream to avoid copying twice.