Focus restoration after mic permissions

I want to make a web app that redirects to my existing website.

My website requires mic permissions, but when LG TV overlay shows up asking for mic permissions, and is granted, the focus is not restored back to the website. As such, I cannot use the direction pad or magic cursor on my website.

So current flow is

User clicks on web app and can interact → user clicks on button to redirect → LG overlay for mic permissions pops up → user agrees → softlock until user presses back button.

Is there a way to subvert this?

In webOS TV apps, webview and multi-window features are not supported. So there is no way to return to the app. Sorry for not being helpful.

No worries narae0.kim!

I wanted to ask a follow up question - is there a way I can detect whether the user has mic permissions on the page?

I was trying to use navigator.mediaDevices.getUserMedia({ audio: true }); but I would love verification on whether this is correct

Currently, getting media from camera and microphone devices connected to webOS TV is not allowed. So it won’t work. Thank you.

Thank you Narae - one more thing. If we cannot get media from microphones connected to Web OS TV, how do we detect mic permission of the LG remote control? I can use the LG TV remote control to talk to the TV. How do the permissions work for the LG mic?

webOS TV supports voice input by default. When you click the voice button on the Virtual Keyboard or Magic Remote, the TV processes your voice and returns the value to the text input area. Therefore, no additional implementation is required. Thank you.

Appreciate the response!

To confirm that I understand, you are saying that the magic remote voice button is supported by webOS TV by default, so there is no need to ask for user permission there?

Yes, you can check it with the Virtual Keyboard sample app. Thank you.

Hi Narae, wanted to bump this thread. There seems to be certain apps on LG TV that ask for mic permissions, as can be seen in: Settings > Support > Terms & Privacy > App permissions > Microphone

On my TV, it is Web Browser and Alexa. Are you familiar with how these apps detect/manage mic permissions? And is there a way to add my app to it? (is there a Luna api call or anything like that)

LG apps and LG partner apps may have different specifications, but we do not disclose the details. If you have questions about LG partnership, please contact LG Seller Lounge > 1:1 Q&A > Partnership. Thank you.