The deal would give the e-commerce giant’s streaming service a vast library of content.