-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent "use desktop/electron app" error message ...when using that app! #224
Comments
@adrienjoly there are 2 issues when trying to test a solution on my local machine. I have used a solution suggested here electron/electron#2288 (comment)
|
@compiuta It's expected. Search is provided by a third-party: Algolia, and the Algolia credentials provided in the If you want your local search index to be populated after adding tracks, you should create an Algolia account, and set the |
@compiuta Yes, there is:
Btw, the openwhyd-electron repository could benefit from more documentation. Feel free to send a Pull Request there if you want to propose some! Adrien |
@compiuta I also wanted to let you know that we already had some code in openwhyd's repository to check if it's running in electron. A quick search for "electron" in the source code reveals a You can probably re-use a similar logic in the front-end, as the user agent is made available by the browser. |
I will try out your suggestions and get back to you later 👍 |
@adrienjoly I was able to test the electron app locally and a variable that exists in the whydPlayer.js file USING_ELECTRON is actually already detecting if we are in the electron app. I added it to the if condition let me know if the message is now changing for you when using the electron app or an internet browser. |
…294) Closes #224 . ## What does this PR do / solve? Show track error message in electron desktop app without "... Please try with Openwhyd Desktop App" ## Overview of changes I used a suggested solution from this issue electron/electron#2288 (comment) By detecting if the user agent contains "electron" it is possible to show a unique message for desktop browsers or the electron app. ## How to test this PR? See #224 (comment)
## [1.30.2](v1.30.1...v1.30.2) (2020-03-22) ### Bug Fixes * **ui:** Display correct track error message when using electron app ([#294](#294)) ([4f97ccd](4f97ccd)), closes [#224](#224) [/github.com/electron/electron/issues/2288#issuecomment-337858978](https://github.com//github.com/electron/electron/issues/2288/issues/issuecomment-337858978) [/github.com//issues/224#issuecomment-601430390](https://github.com//github.com/openwhyd/openwhyd/issues/224/issues/issuecomment-601430390)
Describe the bug
A few years ago, Google Chrome prevented videos from being played without user intervention, when the tab is not focused.
In order to not let new users think that Openwhyd is not able to play tracks sequentially because of that new behavior, I decided to pause the playback whenever the user would switch to another track, so that they can see the following recommendation:
Indeed, the "Openwhyd Desktop App" (downloadable from https://openwhyd.org/download) is able to play tracks sequentially, even in the background.
Unfortunately, that same error message is displayed every time a track fails to be played, for any reason, including from the Openwhyd Desktop App itself! 😬
To Reproduce
Expected behavior
When a track fails to play from the Desktop App, it should displayed another error message. Something like:
But, when failing to play that track from openwhyd.org (in Google Chrome), the error message should be left as it currently is. (i.e. invite the user to install the Desktop App)
Screenshots
Here's what the error looks like:
You can find the implementation of that error message in
whydPlayer.js
The text was updated successfully, but these errors were encountered: