MediaKeySession: update() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Encrypted Media Extensions")}}{{SecureContext_Header}}

The update() method of the {{domxref('MediaKeySession')}} interface loads messages and licenses to the CDM, and then returns a {{jsxref('Promise')}}.

Syntax

js-nolint
update(response)

Parameters

  • response
  • : An instance that is either an {{jsxref("ArrayBuffer")}}, a {{jsxref("TypedArray")}}, or a {{jsxref("DataView")}}.

Return value

A {{jsxref('Promise')}} that resolves to undefined.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}