Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by gianmichele

Hi all,

I just come to know Ejecta and I'm obviously intrigued but its performance. I love the workflow of html5/javascript games and I have yet to find anything suitable for mobile without losing on performance.

I have a few questions on Ejecta:

- can I play a video using normal html5/javadcript tools in it?
- I'd love to create some sort of player using Ejecta. This player would load remote resources from a local webserver so that I can break the cycle of compile/deploy/test. Is this something I can do with just javascript or do I have modify ejecta?

Thanks a lot in advance.

Gianmichele

1 decade ago by dominic

Yes, you can play video:
http://impactjs.com/ejecta/supported-apis-methods#video

Loading resources from a webserver isn&039;t that trivial. You can load source files with XMLHttpRequest, but this would fall apart with Ejecta #ej.include() stuff. There's currently no way to load images from remote origins.

So yes, you'd have to modify Ejecta (the native source) to make this work. The reason Ejecta doesn't support this out of the box is, that the AppStore terms specifically prohibit downloading code. So this would only work for testing anyway.

1 decade ago by gianmichele

Thanks for the response Dominic.

I know the app store doesn't support it, it's just for development reasons. The release would be different.
Page 1 of 1
« first « previous next › last »