**Category: ** Tizen Web Application Development
**Description: **
Hello Samsung Developer Team,
I’m currently developing a Tizen web application using Tizen Studio. The app includes a video player that is launched either via <video>
tag.
Issue:
When I navigate to the video player and then return back to the main application (either by exiting the video or closing the player programmatically), the focus on my UI elements stops working. None of the buttons or interactive components regain focus, and the remote-control key events no longer respond as expected.
My code is Working into Tizen emulator properly but does not work into Samsung TV. also, when I click back button technically focus is there but visually does not showing. After if I go to home page using home button and came back to app then focus is there and working properly.
**Steps to Reproduce: **
- Launch the Tizen web application.
- Use the remote control to navigate and select a video to play.
- After playback (or stopping the video), return to the main app screen.
- Try navigating the UI again using the remote — the focus is lost.
**What I’ve Tried: **
- Manually setting focus using JavaScript (
element.focus()
). - Listening to visibility change/page hide/pagebeforeshow events.
*Element display none and then display block apply. - Destroying the player instance completely and recreating the UI.
But none of these approaches have restored proper focus behavior after returning from video playback.
**Request: **
Can someone guide me on how to properly restore focus in a Tizen web application after returning from a video player? Is there a best practice for handling focus management post video playback?
Any help would be greatly appreciated.
Thanks in advance!