picture-in-picture

Is it possible to use PIP mode which is not for videos?

泪湿孤枕 提交于 2021-02-17 07:00:08
问题 I want to show a div class as PiP(Picture in Picture). I have googled a lot, but only how to enable in videos, not a custom div. At my environment, js, CSS and HTML can be used. A div that I want to use PiP changes second by second. 回答1: Nope PiP is available for <video> only. What you could do though is to stream a <canvas> in a <video> and use PiP there. You can now draw whatever you want in this <canvas>, and even reproduce HTML content. const target = document.getElementById('target');

Swift WebKit Picture in Picture

谁说胖子不能爱 提交于 2021-02-08 06:36:35
问题 How can you enable Picture-in-Picture on a Swift WebView from WebKit? At the moment, when you watch a video in a webView and switch to the home screen, you briefly see the picture-in-picture view in the top right on the home screen, but it disappears after a second. How can you retain it so it doesn't disappear? Thanks in advance! 回答1: Make sure you enabled Picture in Picture under BackgroundModes in Xcode. TARGETS -> Signing & Capabilities -> Background Mode If you are trying to embed a

Play video from youtube in picture-in-picture mode

淺唱寂寞╮ 提交于 2021-01-20 07:53:32
问题 I have an app which plays video from youtube and i have coded the link in my MainActivity class.. I have made the video played in my app as expected.. I have tried PictureInPictureParams.Builder but ran into multiple errors.. public class MainActivity extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_REQUEST = 1; private YouTubePlayerView youTubeView; private MyPlayerStateChangeListener playerStateChangeListener; private

Play video from youtube in picture-in-picture mode

久未见 提交于 2021-01-20 07:53:30
问题 I have an app which plays video from youtube and i have coded the link in my MainActivity class.. I have made the video played in my app as expected.. I have tried PictureInPictureParams.Builder but ran into multiple errors.. public class MainActivity extends YouTubeBaseActivity implements YouTubePlayer.OnInitializedListener { private static final int RECOVERY_REQUEST = 1; private YouTubePlayerView youTubeView; private MyPlayerStateChangeListener playerStateChangeListener; private

Why video.requestPictureInPicture() works only once?

て烟熏妆下的殇ゞ 提交于 2020-11-29 10:40:25
问题 I'm trying enter and exit PIP mode of video via Javascript onscroll function and I can only once enter and exit this mode. Here's my codepen: `if (!myVideo.paused && myVideo.currentTime > 0 && !myVideo.ended && !isVideoPIP) { console.log('runPip') myVideo.requestPictureInPicture() .then(()=>{isVideoPIP = true;}) .catch(e=>console.log(e.message)); }` https://codepen.io/Greggg/pen/WBdeJG Second time I have this error message "Must be handling a user gesture if there isn't already an element in

Why video.requestPictureInPicture() works only once?

家住魔仙堡 提交于 2020-11-29 10:36:50
问题 I'm trying enter and exit PIP mode of video via Javascript onscroll function and I can only once enter and exit this mode. Here's my codepen: `if (!myVideo.paused && myVideo.currentTime > 0 && !myVideo.ended && !isVideoPIP) { console.log('runPip') myVideo.requestPictureInPicture() .then(()=>{isVideoPIP = true;}) .catch(e=>console.log(e.message)); }` https://codepen.io/Greggg/pen/WBdeJG Second time I have this error message "Must be handling a user gesture if there isn't already an element in

UnAuthorized Overlay Error on entering Picture in Picture mode YoutubePlayer View Android?

落爺英雄遲暮 提交于 2020-04-30 06:23:17
问题 I am doing live streaming for the youtube videos. By entering into the picture in picture mode the player pause the video with the Error UNAUTHORIZED_OVERLAY . VideoLayout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linear_youtube_rootlayout" android:orientation="vertical" android:background="@color/black" android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.youtube.player.YouTubePlayerView android:id="

How to set the icon and title on Android TV home screen for the currently running task

只谈情不闲聊 提交于 2020-01-05 09:14:30
问题 I have enabled picture-in-picture mode for an Android TV app based on this guide: https://developer.android.com/guide/topics/ui/picture-in-picture.html When I enter PiP mode, and navigate to the home screen of the Android home screen, it shown at the top the currently running task (PiP window) with an icon an title and options to Open and Close. I could not find any documentation on how to set the the title and the icon (but most importantly the title). I have tried setting the

ffmpeg - color-grading video material AND display original source as picture-in-picture, using -filter_complex

自闭症网瘾萝莉.ら 提交于 2019-12-08 12:22:58
问题 this is my first post on this forum, so please be gentle in case I accidentally do trip over any forum rules that I would not know of yet :). I would like to apply some color-grading to underwater GoPro footage. To quicker gauge the effect of my color settings (trial-and-error, as of yet), would like to see the original input video stream as a PIP (e.g., scaled down to 50% or even 30%), in the bottom-right corner of the converted output movie. I have one input movie that is going to be color

Safari Picture In Picture - custom HTML5 video controller

时间秒杀一切 提交于 2019-11-26 19:22:09
问题 Safari HTML5 custom video controller with Picture In Picture (PiP) At the WWDC15 Apple introduces Safari 9 (Safari 10 for MacOS) , there now have support for Picture in Picture. However, they just say: If you use custom HTML5 video controls, you can add Picture in Picture functionality using the JavaScript presentation mode API. but not telling how or where to find its documentation. The default video controller has the button, but how do I trigger it by javascript? 回答1: First if you are