Constructor
new MediaCapabilities()
A polyfill to provide navigator.mediaCapabilities on all browsers. This is necessary for Tizen 3, Xbox One and possibly others we have yet to discover.
Members
memoizedCanDisplayTypeRequests_ :Object.<(!string), (!boolean)>
    A cache that stores the canDisplayType result of calling
`cast.__platform__.canDisplayType`.
    Type:
- Object.<(!string), (!boolean)>
 
originalMcap :MediaCapabilities
    A copy of the MediaCapabilities instance, to prevent Safari from
garbage-collecting the polyfilled method on it. We make it public and export
it to ensure that it is not stripped out by the compiler.
    Type:
- MediaCapabilities
 
Methods
canCastDisplayType_(videoConfignon-null) → {Promise.<boolean>}
    Checks if the given media parameters of the video or audio streams are
supported by the Cast platform.
    Parameters:
| Name | Type | Description | 
|---|---|---|
videoConfig | 
            
            VideoConfiguration | The 'video' field of the MediaDecodingConfiguration. | 
Returns:
    `true` when the stream can be displayed on a
  Cast device.
- Type
 - Promise.<boolean>
 
checkAudioSupport_(audioConfignon-null) → {boolean}
Parameters:
| Name | Type | Description | 
|---|---|---|
audioConfig | 
            
            AudioConfiguration | The 'audio' field of the MediaDecodingConfiguration. | 
Returns:
- Type
 - boolean
 
checkDrmSupport_(videoConfig, audioConfig, mcapKeySystemConfignon-null) → {Promise.<MediaKeySystemAccess>}
Parameters:
| Name | Type | Description | 
|---|---|---|
videoConfig | 
            
            VideoConfiguration | The 'video' field of the MediaDecodingConfiguration. | 
audioConfig | 
            
            AudioConfiguration | The 'audio' field of the MediaDecodingConfiguration. | 
mcapKeySystemConfig | 
            
            MediaCapabilitiesKeySystemConfiguration | The 'keySystemConfiguration' field of the MediaDecodingConfiguration. | 
Returns:
- Type
 - Promise.<MediaKeySystemAccess>
 
checkVideoSupport_(videoConfignon-null) → {Promise.<boolean>}
Parameters:
| Name | Type | Description | 
|---|---|---|
videoConfig | 
            
            VideoConfiguration | The 'video' field of the MediaDecodingConfiguration. | 
Returns:
- Type
 - Promise.<boolean>
 
decodingInfo_(mediaDecodingConfignon-null) → {Promise.<!MediaCapabilitiesDecodingInfo>}
Parameters:
| Name | Type | Description | 
|---|---|---|
mediaDecodingConfig | 
            
            MediaDecodingConfiguration | 
Returns:
- Type
 - Promise.<!MediaCapabilitiesDecodingInfo>