HTML Media


  1. In HTML Audio/Video DOM __________ returns a TextTrackList object representing the available text tracks.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The current ready state of video/audio is set by readyState. StartDate sets current date representing current time offsets. VideoTrack returns video track list representing available video tracks. The textTracks property returns a TextTrackList object. The TextTrackList object represents the available text tracks for the audio/video. Each available text track is represented by an TextTrack Object.


  1. In HTML Audio/Video DOM __________ returns a MediaError object representing the error state of the audio/video.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Seeking returns whether user is currently seeking video/audio. Ended attribute fires up when current playing playlist is finished. The error property returns a MediaError object. The MediaError object has a code property containing the error state of the audio/video. The group to which audio/video belongs is returned by mediaGroup.



  1. Which of the following HTML Video – Media Type is not supported in IE?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on iOS) by installing an add-on. The format is not supported in Internet Explorer in any way. The most widely used format for HTMl video i.e MP4 format is supported in IE.


  1. In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start playing as soon as it is loaded.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Control attribute is used to set whether audio/video should display controls. AudioTrack list representing audio tracks is set by audio track. The autoplay attribute is a boolean attribute. When present, the audio will automatically start playing as soon as it can do so without stopping. A current src of audio/video is returned by currentSrc.



  1. Which of the following attribute adds audio controls, like play, pause, and volume?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The audio attribute defines sound, such as music or other audio streams. Source attribute defines multiple media resources for media elements, such as <video> and <audio>. Src attribute gives current source of audio/video element. The controls attribute is a boolean attribute. When present, it specifies that audio controls should be displayed.