Skip to content

Commit

Permalink
Merge pull request #68 from hyperaudio/62-soundcloud-timing-bug
Browse files Browse the repository at this point in the history
62 soundcloud timing bug
  • Loading branch information
maboa authored Sep 14, 2021
2 parents ae25139 + e14a40a commit 2e9bb8e
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!-- Example index.html Copyright (C) BBC Research & Development - content used with kind permission of Ian Forrester https://twitter.com/cubicgarden/ -->
<!-- Version 2.0.3 -->
<!DOCTYPE html>
<html>
<head>
Expand Down
4 changes: 2 additions & 2 deletions js/hyperaudio-lite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! (C) The Hyperaudio Project. MIT @license: en.wikipedia.org/wiki/MIT_License. */
/*! Version 2.0.2 */
/*! Version 2.0.3 */

'use strict';

Expand Down Expand Up @@ -288,7 +288,7 @@ class HyperaudioLite {
if (this.playerType === 'native') {
this.currentTime = this.player.currentTime;
} else if (this.playerType === 'soundcloud') {
this.player.getPosition(function (ms) {
this.player.getPosition(ms => {
this.currentTime = ms / 1000;
});
} else {
Expand Down
1 change: 1 addition & 0 deletions multiplayer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- Version 2.0.0 -->
<!DOCTYPE html>
<html>
<head>
Expand Down
Loading

0 comments on commit 2e9bb8e

Please sign in to comment.