I am embedding a SoundCloud player using the /oembed call in the API.
First of all, it seems like the documentation is incorrect/outdated regarding the height of the iframe in the response. The docs says about the maxheight
parameter:
The maximum height in px. The default is 81 for tracks and 305 for all other.
However, it seems like the actual received height values are 166px for tracks and 450px for sets.
Now to my actual question:
When calling /oembed for a set/playlist, there will be empty space below the track list. Is there any way to eliminate this space? In other words, can I somehow set the height of the received iframe based on the number of items in the playlist?
Checking this myself and setting the height dynamically won't work since I am not allowed to inspect the contents of the iframe, because of same-origin policy in the web browser.