Embed fails to load
Steps to reproduce
- Open a track on Funkwhale and select Embed
- Copy the embed code
- Paste the resulting iframe into a web page
What happens?
The embed player fails to load any content.
What is expected?
The embed player should show the track and enable people to play it.
Context
Funkwhale version(s) affected: >= 1.3.3
There appear to be two issues. The first was reported in the Support room and the second in my testing.
- There appears to be a CSS issue for some users (on a Docker installation, possibly related to the new template)
- I get a Javascript error when attempting to load the track.
TypeError: source.test is not a function
getAudioSources https://tanukitunes.com/embed.html?&type=track&id=59745:85
fetchTracks https://tanukitunes.com/embed.html?&type=track&id=59745:171
fetchTracks https://tanukitunes.com/embed.html?&type=track&id=59745:165
embed.html:183:17
<anonymous> https://tanukitunes.com/embed.html?&type=track&id=59745:183
TypeError: source.test is not a function
getAudioSources https://tanukitunes.com/embed.html?&type=track&id=59745:85
fetchTracks https://tanukitunes.com/embed.html?&type=track&id=59745:171
fetchTracks https://tanukitunes.com/embed.html?&type=track&id=59745:165
async* https://tanukitunes.com/embed.html?&type=track&id=59745:182
embed.html:183:17
<anonymous> https://tanukitunes.com/embed.html?&type=track&id=59745:183
(Async: promise callback)
<anonymous> https://tanukitunes.com/embed.html?&type=track&id=59745:182