Browse Source

feat(mobile): added toast on ios devices to promote clicking play manually

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

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

@@ -1153,7 +1153,12 @@ export default {
 							this.playVideo();
 
 							// on ios, playback will be forcibly paused locally
-							if (this.isIOS) this.updateLocalPaused(true);
+							if (this.isIOS) {
+								this.updateLocalPaused(true);
+								new Toast(
+									"Please click play manually to use Musare on iOS."
+								);
+							}
 						},
 						onError: err => {
 							console.log("error with youtube video", err);