MediaKeyStatusMap Class

The statuses of the keys known to a key session (https://w3c.github.io/encrypted-media/#mediakeystatusmap-interface): a read-only map of key IDs, sorted by key ID, replaced as a whole when the keys of the session change.

public sealed class MediaKeyStatusMap : IEnumerable<KeyValuePair<byte[], MediaKeyStatus>>, IEnumerable
Implements

Properties

NameDescription
SizeGets the number of known keys.

Gets the number of known keys.

public uint Size { get; }

Methods

NameDescription
Get(ReadOnlySpan<byte>)Returns the status of a key, or null when it is not known.
GetEnumerator()Returns the pairs of key ID and status, sorted by key ID. Each key ID is a new array.
Has(ReadOnlySpan<byte>)Returns whether the status of a key is known.
System.Collections.IEnumerable.GetEnumerator()

Get(ReadOnlySpan<byte>)

MediaKeySession.cs

Returns the status of a key, or null when it is not known.

public MediaKeyStatus? Get(ReadOnlySpan<byte> keyId)

GetEnumerator()

MediaKeySession.cs

Returns the pairs of key ID and status, sorted by key ID. Each key ID is a new array.

public IEnumerator<KeyValuePair<byte[], MediaKeyStatus>> GetEnumerator()

Has(ReadOnlySpan<byte>)

MediaKeySession.cs

Returns whether the status of a key is known.

public bool Has(ReadOnlySpan<byte> keyId)

System.Collections.IEnumerable.GetEnumerator()

MediaKeySession.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.