ABSYZ ABSYZ

  • Home

    Welcome to ABSYZ

  • About us

    Who We Are

  • Our Expertise

    What We Do

  • Our Approach

    How We Do It

  • Products

    What We Made

  • Industries

    Who We Do It For

  • Clients

    Whom We Did It For.

  • Article & Blogs

    What Experts Think

  • Careers

    Join The Team

  • Get In Touch

    Let’s Get Started

ABSYZ

Picture inside Picture (PiP)

Home / Article & Blogs / Mobility / Picture inside Picture (PiP)

Picture inside Picture (PiP)

By Mahalakshmi Sadhananthan inMobility

What isPiP and Why PiP is used?

            Picture-in-Picture (PiP) is a feature available on Android smartphones running Android 8.0 Oreo and later. It is one of Android Oreo’s big new features that lets you see two apps at once. It allows you to multitask. For instance, you can search for a restaurant while video chatting with a friend or watch a YouTube video while getting directions on Google Maps. You will be watching a YouTube video or Google Map Navigations on a pop-up window in our Home Screen.

When you open an app in multi-window and return to the home
screen, a visible sliver of the app remains up top, letting you see which app
you had opened. You can pull down on the black bar to preview the app’s
contents, or expand it to fill the screen. Apps need to be updated to support
the capability, but the necessary changes are relatively simple. Right now,
YouTube, VLC, and Chrome support PiP, but now that Oreo is rolling out to
devices, other major video or independent apps shouldn’t be far behind.

Where it is used?

It can be a
little tricky setting it up on your phone. Developers have to implement
picture-in-picture mode on a case-by-case basis.

We’ve compiled a list of popular
supported apps so far,

 

  • VLC for Android
  • Netflix
  • Google Maps
  • Telegram
  • Google Duo
  • WhatsApp (beta)
  • YouTube
  • Chrome

Each app may use a slightly different process to open a PIP
window. For example, Chrome requires you to watch a video in fullscreen mode,
while YouTube does it whenever any video is playing. VLC requires you to tap
the menu button during video playback and select the PIP option. But the
controls once you invoke the floating window are the same.

Where it can be used?

            It can be implemented on
only certain apps not on all apps. This is because PiP mode is for independent
apps. The content that is played should not have any major dependency on user
only on such apps it can be implemented.

Some apps types in which PiP mode can be implemented,

 

  • Any Video call feature
  • Any video player feature
  • Voice Recorder
  • Camera
  • Calender view or Calender task view
  • Location Tracking
  • Play music
  • Hotstar/ Jio/ Airtel or any Tv
  • Any live Telecasting
  • Crichuzz (Live score updation)
  • Playbooks

How to Launch PiP?

There isn’t a predictable way to launch
picture-in-picture mode. Most apps switch to a floating window view with a
tap of Android’s home button or back button but that’s not always the case. As
I already mentioned PiP mode can be customized in different ways.

To figure out how to launch an app’s
picture-in-picture mode, you’ll have to play around in the app or the app’s
settings.

Configure PiP on your Mobile

Pip mode should be enabled by
default, if not follow the steps give:

 

  1. Go to Settings on your smartphone or tablet.
  2. Tap
    Apps and Notifications
    > Advanced.
  3. Tap
    Special App Access > Picture-in-picture.

 Then you will get a
view list of apps that support PiP mode and which had  PiP enabled. To disable this feature on a
particular app, tab on an app and slide Allow picture-in-picture toggle to Off position.

Implementation of PiP on Maps(For Developers)

 

Map Displayed on a Fragment

 

  1. Add Dependencies (Google-play-service-Maps) into the
    Gradle app file.
  2. Generate Map API online.
  3. Add that API key to your Manifest file.
  4. Add Fragment to the xml to display Map.
  5. Add User permissions on Manifest file.

      Adding PiP mode Coding level

 

  1. Enable PiP to “True” in manifest under the respective Activity.

 

Adding API Key and Setting up PiP Permissions

 

Google Map displayed as a popup onclick of back button (PiP Mode)

 

  • In MainActivity create a function onBackPressed() to display the app in pip mode on
    click of the android back button.
  • Now call the PiP
    builder.
  • We can customize
    the PiP window size and controls.

How to use PiP Controls?

          Picture-in-picture
mode puts several simple and easy controls on the pop up window like playback
controls front and center. Tap on the PiP window and you’ll see play, fast
forward, and rewind buttons, and a center button that maximizes the app for
video player and Close, fullscreen, Settings for Permissions.. If you’re
watching a video from YouTube or VLC, you’ll get a headphone shortcut that
plays the video in the background. And if you’re watching a playlist, tapping
the fast forward button skips to the next video in the list. When you’re done
with the playback controls, tapping on the window again hides them.

The picture-in-picture window is
moveable. Tap, hold, and drag to move it to any part of your phone or tablet’s
screen, and lift your finger to release it. If you let go somewhere in the
middle, the window snaps to the closest valid location.

 

Map Controls Settings, Expand, Close controls

When you’re ready to dismiss it, a
simple tap, hold, and drag to the bottom of the screen does the trick.

Advantage :

 

  • Picture-in-picture mode might be useful for
    multitasking, but it can be annoyingly easy to trigger by mistake. Luckily, you
    can disable picture-in-picture mode on a per-app basis.
  • PiP is also convenient if you want
    to casually watch a video rather than pay full attention, such as a funny video
    that’s taking too long to get to the punchline.

Keep Updating Keep Growing!!

 

AndroidGoogle MapPIP
41
Like this post
2 Posts
Mahalakshmi Sadhananthan

Search Posts

Archives

Categories

Recent posts

Top 5 Factors to evaluate before choosing a Salesforce Integrator

Top 5 Factors to evaluate before choosing a Salesforce Integrator

Significance of UI/UX Design

Significance of UI/UX Design

Cyber-security in an uncertain world

Cyber-security in an uncertain world

The world of AR and VR

The world of AR and VR

The in-and-out of ML

The in-and-out of ML

  • Previous PostSwiftUI Framework
  • Next PostBuild Customized & Powerful Salesforce Mobile App's with React Native.

Related Posts

1 Comment

  1. official here
    Reply
    27 August 2019

    I think this is among the most significant info
    for me. And i am satisfied studying your article.
    But want to remark on some normal things, The site style is ideal, the articles is truly great :
    D. Good process, cheers

    Reply

Leave a Reply (Cancel reply)

Your email address will not be published. Required fields are marked *

*
*

ABSYZ Logo
  • Home
  • About us
  • Article & Blogs
  • Careers
  • Get In Touch
  • Our Expertise
  • Our Approach
  • Products
  • Industries
  • Clients
  • White Papers

ABSYZ Software Consulting Pvt. Ltd.
USA: 49197 Wixom Tech Dr, Wixom, MI 48393, USA
M: +1.415.364.8055

India: 6th Floor, SS Techpark, PSR Prime, DLF Cyber City, Gachibowli, Hyderabad, Telangana – 500032
M: +91 79979 66174

Copyright ©2020 Absyz Inc. All Rights Reserved.

youngsoft
Copy