The MediaEncodingConfiguration dictionary of the Media Capabilities API is used to define the type of media being tested when calling MediaCapabilities.encodingInfo() to query whether a specific media configuration is supported, smooth, and/or power efficient.
 
A MediaEncodingConfiguration dictionary takes two properties:
  - 
type — the type of media being tested; takes one of two values:  - 
record — Represents a configuration for recording of media, e.g. using MediaRecorder.  - 
transmission — Represents a configuration meant to be transmitted over electronic means (e.g. using RTCPeerConnection).  
   - A media configuration — a 
VideoConfiguration AudioConfiguration dictionary.  
 
const mediaConfig = {
    type : 'record', 
    video : {
        contentType : "video/webm;codecs=vp8", 
        width : 800,     
        height : 600,    
        bitrate : 10000, 
        framerate : 30   
     }
};
navigator.mediaCapabilities.encodingInfo(mediaConfig).then(result => {
    console.log('This configuration is ' +  (result.supported ? '' : 'not ') + 'supported.')
});