如何保持从关闭其显示的移动设备显示一个HTML页面时 [英] How to keep a mobile device from switching off its display when showing a HTML page

查看:152
本文介绍了如何保持从关闭其显示的移动设备显示一个HTML页面时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是可以讲一个手机浏览器,只要将显示有一定的HTML页面,该设备不应该关闭它的屏幕?

is it possible to tell a mobile browser, that as long as a certain HTML page is displayed, the device should not turn off its screen?

我想建立类似项目Blinkenlights ,但每一位参与者带来了他/她自己的像素。设定每个显示到某种颜色在给定的时间点是可管理,只要让每一个打开一个网页,显示一个空白页面并改变背景颜色的屏幕。我使用JavaScript来的设备链接,让他们登录到控制服务器。但是,具有像素眼色,因为这些设备去睡觉会以某种方式打破的概念。

I want to build something like Project Blinkenlights, but every participant brings his/her own pixel. To set each display to a certain color at a given point in time is managable, just let each one open a website that shows a blank page and changes the background to color the screen. I'd use JavaScript to link the devices and have them log into a control server. But having the pixels wink out because the devices go to sleep would somehow break the concept.

有一个专门的应用程序将是矫枉过正,而不是每过一个旁观者无论如何都会安装一个应用程序(至少我不会)。

A dedicated app would be overkill, and not every passing onlooker would install an app anyway (at least I wouldn't).

在此先感谢!

推荐答案

我是pretty肯定你不能做,没有捆绑的应用程序内的网页视图。此外,无论是操作系统。这一切都是为了保护用户(以及他的设备电池)

I'm pretty sure you can't do that without bundle your webview inside an app. And whatever is the OS. It's all about protecting the user (and his device battery)

这篇关于如何保持从关闭其显示的移动设备显示一个HTML页面时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆