mozilla-mobile / firefox-tv

Firefox for Amazon's Fire TV
https://blog.mozilla.org/blog/2017/12/20/firefox-is-now-on-amazon-fire-tv-happy-holiday-watching/
Mozilla Public License 2.0
255 stars 109 forks source link

Add (multitasking) Picture in Picture Mode for FireOS6 based devices #1499

Open mcl21014 opened 5 years ago

mcl21014 commented 5 years ago

Why/User Benefit/User Problem

You can't currently watch a video and multitask on a Fire TV. This is annoying. No web browser currently allows this. Allowing PiP mode would grant multitasking abilities to the user on supported devices.

What / Requirements

Device must run at least FireOS6. I know for a fact Nougat on Android TV supports PiP mode, but I'm uncertain if Amazon has removed it.

Acceptance Criteria (how do I know when I’m done?)

Developer will know they're done when Firefox supports PiP mode (if possible) on the Fire Stick 4k and other supported devices.

liuche commented 5 years ago

This could also be split-screen within Firefox (e.g. multiple tabs, so you can browse + watch Youtube). If we want to allow Firefox as the PIP, we'd need to talk to Amazon to see if they allow this. AFAIK I don't see any other apps with this capability yet.

jonalmeida commented 5 years ago

@liuche I've tested this with R-B sideloaded onto a FireTV 4K stick and works decently well.

There's also an integration class here for PiP-support that shows how you can add whitelisting support for sites that you want in PiP without being in fullscreen mode first (e.g. youtube TV).

https://github.com/mozilla-mobile/reference-browser/blob/master/app/src/main/java/org/mozilla/reference/browser/pip/PictureInPictureIntegration.kt