Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway I could initialize SpatialNavigation for an iframe in my application? #33

Open
devcer opened this issue Nov 16, 2018 · 3 comments

Comments

@devcer
Copy link

devcer commented Nov 16, 2018

I have an iframe in my application and I have access to both the parent and child applications so I can choose the selectors wisely. But SpatialNavigation doesn't work if I navigate it either from parent or child. is there anyway I could do it?

@luke-chang
Copy link
Owner

SpatialNavigation currently doesn't support navigating cross frames. I haven't tried but I imagine that you need to load SpatialNavigation both outside and inside the iframe, manually specify and focus an element when crossing the boundary of an iframe, and let another SptialNavigation take over the rest of navigating works within the same frame.

@bytet
Copy link

bytet commented Sep 24, 2019

First let me thank you Luke-Chang for your work. I have enjoyed modifying your code to recreate my website for a FireTV app.(not the silk browser) I have hit a block. I have a iframe I've been able to load YouTube videos in but either they autoplay with no sound, (the app was created for mobile) or they are unmuted but need the play button clicked. Any further experiments with iframe you can share?

@bytet
Copy link

bytet commented Oct 1, 2019

I've come to accept to many security issues with iframe and YouTube video. So rather than load YouTube video to an iframe, I loading a new page with vanilla html5 video player, mp4 video and Sn . The fir TV remote back button closes the window and I return to previous page. On the desktop the last focus element is still active but on the fire TV the page resets and the top element is default. Does this sound like a browser bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants