How to launch my swf game in my manifest.json file for my Chrome packaged web app?

匆匆过客 提交于 2019-12-02 03:35:35

You can't do it with a (new) Chrome App.

From Disabled Web Features:

Disabled: Flash
Workaround: Use HTML5 Platform.

You might get it working by embedding an external page in a <webview>, but I doubt it will work - my guess is that the ban extends to webview content.

FYI, all flash game "apps" in the Chrome Web Store are not Chrome Apps, but hosted apps (also called installable web apps). Note that the documentation for them is currently broken, there are still traces at this tutorial.

You can run it by doing this code:

<object>
    <embed src="file.swf" width="100%" height="100%"></embed>
</object>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!