I was wondering if there was any chance to add musiclab iframe music to my games?
because the size is super low and the loop is fantastic, unlike the loop in Gdevelop that has a 0.6 seconds pause before the song repeats and sounds weird.
< iframe width=“560” height=“315” src=“https://musiclab.chromeexperiments.com/Song-Maker/embed/5563340287901696” frameborder=“0” allowfullscreen>< /iframe>
It is not possible with events. Wondering if it would be possible to modify the DOM with JS events. I never tried that. You could try this in a JS event:
var iframe = document.createElement('iframe');
iframe.src = 'https://musiclab.chromeexperiments.com/Song-Maker/embed/5563340287901696';
I’m not sure about modifying the DOM with JS but what you can certainly do is If you export to HTML, you can edit the “index.html” file and insert the iframe in to the html manually.
Then if you need to, you can package your game to desktop and mobile using 3rd party build service.
Thats very helpful, thanks!
I´ll try modifying ths JS code, always forget that Gdevelop has JS options!
THANK YOU VERY MUCH!
Do you have any luck ? im trying to get an iframe in a scene with JS