Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
PrestonN committed Mar 8, 2018
2 parents 3ebcde1 + 086d4d4 commit 49a5a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/js/videos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -594,6 +594,7 @@ function changeQuality(videoHtml, qualityType, isEmbed = false) {
* @return {Void}
*/
function changeVideoSpeed(speed){
$('#currentSpeed').html(speed);
$('.videoPlayer').get(0).playbackRate = speed;
}

Expand Down
2 changes: 1 addition & 1 deletion src/templates/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>
</div>
<div class='smallButton videoSpeed'>
<span id='currentSpeed'>1x</span> <i class="fas fa-angle-down"></i>
<span id='currentSpeed'>1</span>x <i class="fas fa-angle-down"></i>
<div class='speedTypes'>
<ul>
<li onclick='changeVideoSpeed(0.25)'>0.25x</li>
Expand Down

0 comments on commit 49a5a50

Please sign in to comment.