Using Spotify Web SDK in Qt6
-
I'm trying to add Spotify feature using QtWebEngine in MacOS. Qt 6.8.0
Code: in the qml file, WebEngineView turn on the index.html files.
index.html have javascript codes about the spotify.My Qt used Chrome widevine, and when I run, it makes this error.
js: Uncaught (in promise) EMEError: No supported keysystem was found.
This error didn't come out when run index.html in chrome web browser directly.
I searched, and found this document, so I tried to rebuild qt using under command.
./configure -webengine-proprietary-codecs
But it cames out another error
WARNING: QtWebEngine won't be built. Python3 html5lib is missing. WARNING: QtPdf won't be built. Python3 html5lib is missing.
Python3 is already installed in my labtop,
and I install html5lib in python virtual environments.
Is it wrong way??
Nothing changes. -
@cobook said in Using Spotify Web SDK in Qt6:
Python3 is already installed in my labtop,
Is Python in PATH when you're calling configure? And I guess configure does not you any of your virtual environments and will not find html5lib there.
-
Ok I found how to connect the python path.
I add the my python virtual environment path. but still nothing has changed.$ pwd /Users/Qt/6.8.0/Src $ which python3 /Users/Qt/6.8.0/Src/venv/bin/python3
$ ./configure -webengine-proprietary-codecs ... [QtWebEngine] -- Support check for QtWebEngine failed: Python3 html5lib is missing. [QtWebEngine] -- Support check for QtPdf failed: Python3 html5lib is missing. .... WARNING: QtWebEngine won't be built. Python3 html5lib is missing. WARNING: QtPdf won't be built. Python3 html5lib is missing.
$ /Users/Qt/6.8.0/Src/venv/bin/python3 -m pip show html5lib Name: html5lib Version: 1.1 Summary: HTML parser based on the WHATWG HTML specification Home-page: https://github.com/html5lib/html5lib-python Author: Author-email: License: MIT License Location: /Users/Qt/6.8.0/Src/venv/lib/python3.13/site-packages Requires: six, webencodings Required-by: