Hi guys, I’m attempting to use PlayCanvas to create a playable ad on mobile devices. I’ve got the tech specs from the ad networks and a lot of them require the assets inline and everything inside a single HTML file, I was wondering if anyone has had any success doing this?
I’ve used Node.js inliner to bring it into a single html file but the engine just fails, seemingly trying to load the json and I would imagine the rest of the assets.
I’ve had a look at the engine and it seems to do all the asset requests via http through the json config, it seems like I’d have to modify the engine quite heavily if I wanted to meet the ad network tech specs.
I don’t seem to be able to find any information on PlayCanvas as a playable ad engine and nothing on it’s compatibility with MRAID, am I wasting my time trying to use PlayCanvas to create a playable ad?
The situation is still the same. It’s only really practical to do this if you use the Engine directly. Export of a PlayCanvas app from the Editor does no inlining of assets and it would be complicated to post-process an Editor-generated app to exist in a single file.
Well, I tried to solve the problem and almost succeeded. All the files exported from the editor can be bundled into HTML file directly (in case of js/css files) or as data-uri params (images, JSONs etc).
The only problem I faced are loading assets.
When I try to pass data-uri string instead of normal URL in config.json file,