Browse Source

fix(mobile): removed playback rate changes with ios to stop stuttering

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 years ago
parent
commit
877549d8d5
1 changed files with 6 additions and 2 deletions
  1. 6 2
      frontend/src/pages/Station/index.vue

+ 6 - 2
frontend/src/pages/Station/index.vue

@@ -1310,7 +1310,12 @@ export default {
 				}
 			}
 
-			if (!this.stationPaused && !this.localPaused && this.playerReady) {
+			if (
+				!this.stationPaused &&
+				!this.localPaused &&
+				this.playerReady &&
+				!navigator.platform.match(/iPhone|iPod|iPad/)
+			) {
 				const timeElapsed = this.getTimeElapsed();
 				const currentPlayerTime =
 					Math.max(
@@ -1320,7 +1325,6 @@ export default {
 					) * 1000;
 
 				const difference = timeElapsed - currentPlayerTime;
-				// console.log(difference);
 
 				let playbackRate = 1;