Running the emulator code locally, still runs it from github.
I downloaded the whole repo. Then editted the run.html file a bit. Started off with this:
And added my adf file into the same folder.
I then start a local webserver via python.
then whatever I do (local file, or the url in the config) the game won't start. And if I look in the network developer menu thingy, I see a lot of connections from (to?) https://vamigaweb.github.io.
I think that makes it not work because with all that cross domain stuff I get into the corrs stuff you warn about.
Strangely enough, after a lot of trial and error and finally just using a real server on the internet, stuff started to work. And then if I go back to the local way it also works (I think it may have to do that the files are in cache already).
@rhinoid hi this is just a short ping back ... will write you later today for the other two issues
And if I look in the network developer menu thingy, I see a lot of connections from (to?) https://vamigaweb.github.io/.
the player has a property named vAmigaWeb_url and it defaults to this ...
https://github.com/vAmigaWeb/vAmigaWeb/blob/9945d37e7501ce97bbc2655f5286368f053d9a5f/js/vAmigaWeb_player.js#L7
in your run.html you could just overwrite it with
vAmigaWeb_player.vAmigaWeb_url = 'URL to your vAmigaWeb emulator files';
very cool, you are the first one (as far as I know) using the player 🥰...
🤓 so I bet I have to do more documentation and describe all possible parameters and complete the https://github.com/vAmigaWeb/vAmigaWeb/wiki right?
Actually in the wiki (about embedding) it lists that parameter and I tried that as well. But didn't work. As I said, whats weird i that I see all kinds of stuff going to https://vamigaweb.github.io/. in the javascript debug console thingy even though I initialised the player to run locally. Just try the 'run,html' sample you supply yourself with a random asf which you never tried before (so it is not in the cache) and you'll see it doesn't work. (Or it does and I'm just wrong which is also cool)
"describe all possible parameters". <-- thats always a good idea 😊
needs investigation ... will clone/download the repo, clean all caches and do the same steps as you did to reproduce...
which repo did you download ? the repo with the built for gh-pages vamigaweb.github.io or this source code repo ?
I wa completely confused why I never saw the doc folder. I only know of this repo without the doc folder. 😅