Open akoebbe opened 9 years ago
This is because Rich type Media are currently poorly implemented and doesn't allow setting parameters for the moment (see https://github.com/Sommerregen/grav-plugin-mediaembed/blob/master/classes/OEmbed/OEmbedRich.php#L53). The reason is due to the lack that the specification for rich type media is very unclear (there exists no URL field). Thus I roughly implemented a way to grab at least the correct URL of that media directly from the iframe.
However you are right. Supporting custom param options may be possible be parsing that URL and injecting those params one defines in the mediaembed.yaml
.
I will have a look and see whether I can implement such a feature without rewriting too much of the code.
I've tried setting the following
params
settings for Soundcloud, but none of them seem to have any effect...The outputted iframe src is always: https://w.soundcloud.com/player/?visual=true&url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F142154374&show_artwork=true