Toggle fullscreen in voice control context not possible

15 views
Skip to first unread message

Thomas Kekeisen

unread,
Sep 2, 2017, 4:08:53 PM9/2/17
to Chromium-discuss
For now, its not possible to toggle the browsers full screen mode in a self-implemented voice command since chrome reports this error:

> Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.

But actually, telling the browser "go to fullscreen" is kinda user gesture. What do you think about this? Should there a possibility to create new Instance of webkitSpeechRecognition with the right, to call webkitRequestFullscreen somewhen in its context?

Code:

var s = new webkitSpeechRecognition();

s.onresult = function (event) {
console.log('user told us to "enter fullscreen"');

document.body.webkitRequestFullscreen();
};

s.start();

Links:


https://developers.google.com/web/updates/2013/01/Voice-Driven-Web-Apps-Introduction-to-the-Web-Speech-API

PhistucK

unread,
Sep 2, 2017, 4:11:10 PM9/2/17
to kekeise...@gmail.com, Chromium-discuss
Interesting use case. :)

Generally, for feature requests, you can search crbug.com for an existing issue for this feature request and star it. If you cannot find one, you can use the "New issue" link at crbug.com to file a new one.
(If you do find one, do not add comments like "+1" or "me, too", it only hinders the development and it does not make the engineers implement the feature more quickly.)



PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Thomas Kekeisen

unread,
Sep 3, 2017, 12:28:49 PM9/3/17
to Chromium-discuss
Thanks, checked the database and found no matching issue, so I created one: https://bugs.chromium.org/p/chromium/issues/detail?id=761674
Reply all
Reply to author
Forward
0 new messages