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>>, IEnumerableProperties
| Name | Description |
|---|---|
| Size | Gets the number of known keys. |
Gets the number of known keys.
public uint Size { get; }Methods
| Name | Description |
|---|---|
| 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.csReturns the status of a key, or null when it is not known.
public MediaKeyStatus? Get(ReadOnlySpan<byte> keyId)GetEnumerator()
MediaKeySession.csReturns 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.csReturns whether the status of a key is known.
public bool Has(ReadOnlySpan<byte> keyId)