AmitDiwan has Published 10744 Articles

HTML DOM Video playbackRate Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:23:51

140 Views

The HTML DOM Video playbackRate property returns/sets a number corrosponding to current playback rate of media.SyntaxFollowing is the syntax −Returning playbackRate as a numbermediaObject.playbackRateSetting playbackRate to a numbermediaObject.playbackRate = numberNOTE − Number has a max value of ‘16’ and if ‘0.0’ video is still.Let us see an example of Video ... Read More

HTML DOM Video played Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:22:38

154 Views

The HTML DOM Video played property returns a TimeRanges object containing information about the video’s played range length and its start, end position.SyntaxFollowing is the syntax −Returning TimeRanges ObjectmediaObject.playedLet us see an example of Video played property −ExampleLive Demo HTML DOM Video played    * {   ... Read More

HTML DOM Video poster Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:21:34

126 Views

The HTML DOM Video poster property returns/sets a string corresponding to the url of an image shown until the video is played or network state is equal to ‘2’.SyntaxFollowing is the syntax −Returning string valuemediaObject.posterSetting poster to a URLStringmediaObject.poster = URLStringLet us see an example of HTML DOM Video poster ... Read More

HTML DOM Video height Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:20:06

139 Views

The HTML DOM Video height property returns/sets a number corresponding to height (in pixels) of media.SyntaxFollowing is the syntax −Returning height as a number (px)mediaObject.heightSetting height to a number (px)mediaObject.height = numberLet us see an example of Video height property −ExampleLive Demo HTML DOM Video height   ... Read More

HTML DOM TouchEvent touches Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:16:12

108 Views

The HTML DOM TouchEvent touches property returns a TouchList object corresponding to a list of all contact points triggered on a touch surface.NOTE: If a touch is triggered on the specified node or any of its child nodes then the following touches will count even if they are not triggered ... Read More

HTML DOM Track Object

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:13:58

177 Views

The HTML DOM Track Object in HTML represents the element.Creating a elementvar trackObject = document.createElement(“TRACK”)Here, “trackObject” can have the following properties −PropertyDescriptiondefaultItsets/returns the default state of a trackkindItsets/returns the value of the kind attribute of the tracklabelItsets/returns the value of the label attribute of the trackreadyStateItreturns the current ... Read More

HTML DOM Track src Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:13:19

123 Views

The HTML DOM Track src property sets/returns the value of src attribute of track element to specify the URL for track.Following is the syntax −Returning string valuetrackObject.srcSetting src to stringValuetrackObject.src = URLLet us see an example of Track src property −ExampleLive Demo Track src    form { ... Read More

HTML DOM Track srclang Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:11:49

89 Views

The HTML DOM Track srclang property sets/returns a value corresponding to the language of text track.Following is the syntax −Returning string valuetrackObject.srclangSetting srclang to stringValuetrackObject.srclang = stringValueLet us see an example of Track srclang property −ExampleLive Demo Track srclang    form {       width:70%;   ... Read More

HTML DOM Video controls Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:09:10

188 Views

The HTML DOM Video controls property returns/sets boolean value corresponding to whether the video’s standard controls will be enabled or not.SyntaxFollowing is the syntax −Returning boolean value - true/falsemediaObject.controlsSetting controls to booleanValuemediaObject.controls = booleanValueHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that video willhave standard controlsfalseIt defines that video willnot ... Read More

HTML DOM Video currentTime Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:06:38

378 Views

The HTML DOM Video currentTime property returns/sets the current position of seeker (in seconds) of media.Following is the syntax −Returning seeker positionmediaObject.currentTimeSetting currentTime to seekable positionmediaObject.currentTime = secondsLet us see an example of Video currentTime property −ExampleLive Demo HTML DOM Video currentTime    * {     ... Read More

Advertisements