简体   繁体   English

如何在tvOS自定义应用程序中包含基于HTML5的游戏?

[英]How to include HTML5 based games in tvOS custom apps?

We have implemented a tvOS app, its in App Store. 我们已经在App Store中实现了一个tvOS应用程序。 Now we would like to introduce some HTML5 games in our app as a feature. 现在,我们想在我们的应用程序中引入一些HTML5游戏作为一项功能。 We already have HTML5 games so we don't have to implement newly. 我们已经有了HTML5游戏,因此我们不必重新实施。 So how to include these games in my app. 那么如何在我的应用程序中包含这些游戏。 We got to know that we can't use WebKit in tvOS. 我们知道,我们不能在tvOS中使用WebKit。

  1. Is it possible to use HTML5 based code in our tvOS apps ? 是否可以在我们的tvOS应用程序中使用基于HTML5的代码?

  2. If not possible is there any alternative way like 3rd parties or any tools which will convert HTML5 so that we can use ? 如果不可能,是否有其他替代方法,例如3rd party或任何可以转换HTML5以便使用的工具?

  3. Is there any better way that we can implement HTML5 kind of games ? 有没有更好的方法可以实现HTML5类型的游戏?

不幸的是,无法在tvOS上以这种方式使用html,并且由于根本不同,因此没有工具可以将html快速转移。

You can use some wrapper like Cordova https://cordova.apache.org/ to deploy your html projects as native. 您可以使用诸如Cordova https://cordova.apache.org/之类的包装器将HTML项目部署为本地。 It could be deployed on iOS or Android. 它可以部署在iOS或Android上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM