Picture-in-Picture on tvOS 13 - tvos

tvOS 13 now supports picture-in-picture mode, and it works well in the official Apple TV app - the video player has a specific PiP button.
I thought that this PiP button would be present by default in all applications that use the native player. But this is not at all. Perhaps that the developer must apply this support PiP in his application. But I did not find documentation on how to do implement.
Has anyone already faced this problem?

tvOS 14
With the tvOS 14, now you can use Picture in Picture (PiP) in your tvOS application. You will need to add the Picture in Picture capability to your application in Xcode.
To do so, you select Background Modes in the Add Capabilities window.
It is then as easy as checking the Picture in Picture box in the Signing and Capabilities tab of your project.
Note
The AVPlayerLayer passed to AVPictureInPictureController isn’t used by the PiP display, so AVFoundation stops vending video frames to it while PiP mode is active.
Very Important Tips
Only begin Picture in Picture playback in response to user interaction and never programmatically. The App Store review team rejects apps that fail to follow this requirement.
A user can disable automatic invocation of Picture in Picture in Settings > Home Screen & Dock > Multitasking > Picture in Picture. Check this setting if you think you’ve set up everything correctly but find that your video doesn't enter PiP mode when you press the Home button.
Also, check these documents:
Adopting Picture in Picture in a Custom Player
Adopting Picture in Picture in a Standard Player
Best.
My Old Answer
Open Your Xcode (My Xcode Version is 11.0 (11A420a)) and click on your project and select your target under the TARGETS then click on the Signing & Capabilities tab, you can see the option "Audio, AirPlay, and Picture in Picture" under background modes. Also, you can watch this WWDC session to fully understand the concept.
But when I select that option and re-run my tvOS application nothing happens. This article says:
For now, picture-in-picture is said to be limited to the Apple TV
app...

With tvOS 14, Apple rolled out the PiP feature to everyone. I highly recommend you to have a look to "Master Picture in Picture on tvOS" from the WWDC 20.

Related

How do I remove the PWA install button from Google Chrome?

On my desktop PC, I do not wish to see the PWA install button in my Google Chrome address bar, nor see the option to install in the menu. I have no intention of installing or using them and I don't want to have them constantly pushed into my face.
On my Android phone I want the same, but I also want to see a warning if I am about to install a PWA from the Play Store by accident because it wasn't properly revealed to be a PWA.
Is there a hidden setting or flag in my browser that I can turn off? Can I use Tampermonkey? HELP!
(I don't want to go into detail why I want this except to say that one company is trying to force a PWA on me without offering me the option to get my money back because I'm no longer receiving the software or service I paid for. I also have yet to see a PWA that offers something its website doesn't.)

How can i track user's choice in chrome when native app install banner shows using adobe analytics

My mobile website when viewed on chrome, pops up the banner to ask the user if he/she wants to install the native app. Am able to use this by using the manifest.json. Since this pop up behavior is driven by chrome, am unsure how to track this using Adobe Analytics. I can use beforeinstallprompt to get a call back into my application before the app install banner is shown (chrome lets me to listen to this event), but how can I propagate this to adobe dtm for analytics purposes? I want to know how many people saw this banner, how many dismissed it etc..
Thanks
K

Electron steals focus to Windows 10 Touch Keyboard and makes it unusable

I'm trying to run the attached project on Windows 10 Pro (latest version available without Windows Insider Program).
Basically it is a fullscreen browser window that navigate to http://www.google.com.
I configured Windows in Tablet mode, in order to let the touch keyboard popup whenever any text field in the page (in this case the query one) gets focused.
Then, I packaged the application with electron-windows-store in order to let electron work as Windows Store application.
When I start the application and Google home page is loaded I'm not able to use the touch keyboard, because it pops up but immediately disappears, like if electron tries to acquire again focus and causes touch keyboard disposal.
I tried also to disable fullscreen mode and setup frame coordinates in order to be as it was in fullscreen, but no success.
Any suggestion?
TestApp.zip
GitHub Repo
This seems to be related to an open issue on the Electron GitHub repository. You might have to wait for the Electron team to introduce this improvement.
I've managed it. The issue was caused by an old dependency to electron. Once updated it to the latest version I know (1.4.7) it all started working.

Debug Ipad web app on Windows

I've got site that is correctly displayed on desktop version but has few bugs on iPad. What's the simplest way to detect problems if my OS is Windows?
Option 1 - Free, local machine debugging
You may use Safari browser for Windows (download Safari 5.1.7).
Steps
Enabling Develop menu in menu bar (Press 'Alt' key to open menu bar. Then follow to Edit menu > Preferences > Advanced tab. Find this option at the bottom.)
Then, follow through Develop menu > User Agent. Select iPad, iPhone etc.
There are more options in the Develop menu (e.g. Show Web Inspector) to help with your JavaScript etc debugging.
Credits to How to debug iPhone and iPad web applications, using Safari.
Option 2 - Paid, browser-based access to target browser/OS/machine
I've personally used http://www.browserstack.com/ and it lets you test the functionality on a wide combination. However debugging may not be as convenient here as it would be on a local machine.
There may be more companies providing similar services.
Beware of basic online emulators
As mentioned in a comment, be wary of 'emulator' websites. Example: A website I ran into claimed to emulate iPhone, with a picture of iPhone, and inside it was an iframe, being dutifully rendered by the browser I opened that website in (Firefox).
The best way I can think of(depending of your implementation) is to use the firefox plugin
https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/
It allows you to switch to all sort of devices and see how they would appear on another device.
Here http://www.ampercent.com/test-website-design-iphone-ipad-mobile-devices/7075/ is a quick guide on getting you started.
There are also user-agent switchers for other browsers than FF like Chrome. Do a google search and try for yourself which one you like.

Flash Privacy Popup Dialog is missing "Remember" checkbox

I am trying to get the Privacy Settings Tab to show in our flash/flex4 video chat application we are building. I have 2 systems with latest Flash installed (currently 11.1.102.62). However, the player always shows this (privacy popup question) instead of this (privacy settings tab) when loading the app. The reason i want the settings tab to show is because i need the end user to easily check the "remember" box.
I have tried to call Security.showSettings(SecurityPanel.PRIVACY); before as well as after the getCamera/getMicrophone calls but all that happens is we get 2 popups instead of 1. and still no "remember" option. Actually it doesnt show the privacy tab at all!
Searched tons of forums but have come up empty. I have also searched the adobe docs but all I find is a paragraph stating "if your computer or device doesn't support audio or video recording using Flash Player, you don't need to allow or deny access, and this panel doesn't appear". Which is hardly true since one of the systems we are testing with is a new Macbook Air running latest OSX.
Does anyone have any insight into why this might be happening and how to display the "Privacy Settings" and not the "Privacy pop-up question"?
It seems to be a bug in the current Flash player version. The popup freezes sometimes too.
I've educated users of my application to pre-set their settings.