Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
titlevideoinput IDL
] interface VideoInputConfiguration : EventTarget {
    VideoInputConfig defaultConfig();
    Promise <VideoInputConfig> getConfig();
    Promise <Status> applyConfig(VideoInputConfig config);
    Promise <HdmiInputStatus> getStatus();
    EventHandler hdmiinputchange;

interface VideoInputConfig {
    attribute bool enableAc3;
    attribute bool enableEac3;
    attribute bool enableTrueHdMlp;
    attribute bool enableDts;
    attribute bool enableDtsHd;
    attribute int maxSampleRate;
    attribute int maxChannelCount;
    attribute DOMString lockAudioTo;

interface Status {
    attribute bool rebootRequired;

interface HdmiInputStatus {
    attribute intbool devicePresent;
    attribute int  width;
    attribute int  height;
    attribute bool interlaced;
    attribute float frameRate;
    attribute float pixelClock;
    attribute DOMString colorSpace;
    attribute DOMString audioType;
    attribute int audioSamplingRate;


  • [bool] enableAC3: A flag specifying whether AC-3 is supported
  • [bool] enableEAC3: A flag specifying whether E-AC-3 is supported
  • [bool] enableTrueHDMlp: A flag specifying whether TrueHD MLP is supported
  • [bool] enableDTS: A flag specifying whether DTS is supported
  • [bool] enableDTSHD: A flag specifying whether DTS-HD is supported
  • [int] maxSampleRate: The maximum supported PCM audio sampling rate in Hz (e.g. the default sampling rate is 48000)
  • [int] maxChannelCount: The number of PCM channels that are advertised over EDID. The default value is 2, which allows for stereo mixdown. Increasing this value to 6 allows the source to send multichannel PCM.


    If AC-3 or E-AC-3 is enabled on the player, multichannel audio is supported regardless of the maxChannelCount setting. 

  • [DOMString] lockAudioTo: A value specifying whether the audio sample rate clock is locked to the audio video clock ("video clock of ") or audio clock ("audio") of the incoming HDMI signal. The determination can also be left to the system software ("auto").


This interface is returned by the applyConfig() method.


This interface contains information about the video source connected to the HDMI input: 

  • [intbool] devicePresent: A flag indicating whether an HDMI input source is present (1true) or  or not (0false)
  • [int] width: The width of the source video
  • [int] height: The height of the source video
  • [bool] interlaced: A flag indicating whether the video source is interlaced
  • [float] frameRate: The framerate of the source video
  • [float] pixelClock: The pixel-clock rate of the source video (in MHz)
  • [DOMString] colorSpace: The color space of the source video, which can be one of the following: "RGB""YCbCr420""YCbCr422""YCbCr444"
  • [DOMString] audioType: The audio encoding of the source video, which can be either "PCM" or "Compressed"
  • [int] audioSamplingRate: The audio sampling rate of the source video (in Hz)