Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html video api set speed

// HTML Video API: Get/Set Speed (playback rate)
const video = document.querySelector('video');

// Get playback rate (speed)
console.log( video.playbackRate ); // Expected Output: 1

// Set playback rate (speed)
video.playbackRate = 2;	// 2x
 
PREVIOUS NEXT
Tagged: #html #video #api #set #speed
ADD COMMENT
Topic
Name
6+8 =