MediaKeySession: load() method

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

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

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

The load() method of the {{domxref('MediaKeySession')}} interface returns a {{jsxref('Promise')}} that resolves to a boolean value after loading data for a specified session object.

Syntax

js-nolint
load(sessionId)

Parameters

  • sessionId
  • : A unique string generated by the content description module for the current media object and its associated keys or licenses.

Return value

A {{jsxref('Promise')}} that resolves to a boolean indicating whether the load succeeded or failed.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}