Skip to content
This repository has been archived by the owner on Jun 29, 2020. It is now read-only.

More debugging info for "Failed to initialize player" #71

Open
tobika opened this issue Mar 28, 2019 · 2 comments
Open

More debugging info for "Failed to initialize player" #71

tobika opened this issue Mar 28, 2019 · 2 comments

Comments

@tobika
Copy link

tobika commented Mar 28, 2019

This is a question not a bug report.

I am using the web sdk in chrome aswell as cordova and in general it works pretty well.

While starting the app there is a random chance (maybe 3%, who knows) that I receive a "Failed to initialize player". If I do a window.location.reload() in the webdev tools the error persists after the reload.
I have to force close the app/tab and restart it in which case the player is always initialized correctly.

Is there a way to receive more debugging information in order to resolve this problem.
For the moment I just have "Failed to initialize player"

@tobika
Copy link
Author

tobika commented Apr 29, 2019

It seems that this is not a spotify problem but a bug in the chrome webview (on normal chrome mobile all seems to work)

https://bugs.chromium.org/p/chromium/issues/detail?id=947286&q=Failed%20to%20locate%20a%20binder%20for%20interface&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

But if someone has an idea I'd appreciate it :-)
It seems to break especially since Chrome Mobile 74.0.3729

My adb log:

D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/SystemWebChromeClient: http://localhost/main.js: Line 2766 : https://sdk.scdn.co/spotify-player.js loaded
I/chromium: [INFO:CONSOLE(2766)] "https://sdk.scdn.co/spotify-player.js loaded", source: http://localhost/main.js (2766)
D/SystemWebChromeClient: https://sdk.scdn.co/embedded/index.js: Line 9 : It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.
I/chromium: [INFO:CONSOLE(9)] "It is recommended that a robustness level be specified. Not specifying the robustness level could result in unexpected behavior.", source: https://sdk.scdn.co/embedded/index.js (9)
I/OMXClient: IOmx service obtained
I/OMXClient: IOmx service obtained
I/OMXClient: IOmx service obtained
I/OMXClient: IOmx service obtained
W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
I/OMXClient: IOmx service obtained
I/OMXClient: IOmx service obtained
D/SystemWebChromeClient: onPermissionRequest: [android.webkit.resource.PROTECTED_MEDIA_ID]
E/chromium: [ERROR:binder_registry.h(100)] Failed to locate a binder for interface "media.mojom.MediaDrmStorage".
E/chromium: [ERROR:android_cdm_factory.cc(111)] Cannot fetch origin ID

@AaarnoldHuang
Copy link

I have the same problem.
Got the same error in webview v83.0.4101.0
But I can normally initialize player in Google Chrome Android v83.0.4099.5.
:(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants