From 086d4d42a5398f96de1afb7887c5bedc60fb9f4a Mon Sep 17 00:00:00 2001 From: Preston Date: Wed, 7 Mar 2018 20:27:04 -0500 Subject: [PATCH] Fix: Change text on playback speed --- src/js/videos.js | 3 ++- src/templates/player.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/videos.js b/src/js/videos.js index aaf10b6a6..042ef98b5 100644 --- a/src/js/videos.js +++ b/src/js/videos.js @@ -216,7 +216,7 @@ function playVideo(videoId) { dateString = [dateString.slice(0, 7), '-', dateString.slice(7)].join(''); console.log(dateString); const publishedDate = dateFormat(dateString, "mmm dS, yyyy"); - + // Figure out the width for the like/dislike bar. const videoLikes = info['like_count']; const videoDislikes = info['dislike_count']; @@ -594,6 +594,7 @@ function changeQuality(videoHtml, qualityType, isEmbed = false) { * @return {Void} */ function changeVideoSpeed(speed){ + $('#currentSpeed').html(speed); $('.videoPlayer').get(0).playbackRate = speed; } diff --git a/src/templates/player.html b/src/templates/player.html index 58a395c1f..3028120f9 100644 --- a/src/templates/player.html +++ b/src/templates/player.html @@ -14,7 +14,7 @@
- 1x + 1x
  • 0.25x