Code Monkey home page Code Monkey logo

Comments (13)

jepiqueau avatar jepiqueau commented on July 23, 2024 1

@ramses512 thanks for using the plugin It was implemented in 2.4.7 so i have to look for the reason i forgot this when migrating to 3.+. I will come back with a fix

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 Looking carefully at the code the background mode is implemented. May be you didn't enable background audio for your app? The way to do this is using Xcode

The simplest way to configure these capabilities is by using Xcode.
Select your app’s target in Xcode and select the Capabilities tab.
Under the Capabilities tab, set the Background Modes switch to ON and select the “Audio, AirPlay, and Picture in Picture” option under the list of available modes.

image

this should make it working

from capacitor-video-player.

ramses512 avatar ramses512 commented on July 23, 2024

@ramses512 Looking carefully at the code the background mode is implemented. May be you didn't enable background audio for your app? The way to do this is using Xcode

The simplest way to configure these capabilities is by using Xcode.
Select your app’s target in Xcode and select the Capabilities tab.
Under the Capabilities tab, set the Background Modes switch to ON and select the “Audio, AirPlay, and Picture in Picture” option under the list of available modes.

image

this should make it working

Can you test in angular-video-player-app-starter?

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 i updated angular-videoplayer-app-starter release 1.0.0 to get the background modes setup. If you clone it, install it, it should work

from capacitor-video-player.

ramses512 avatar ramses512 commented on July 23, 2024

@ramses512 i updated angular-videoplayer-app-starter release 1.0.0 to get the background modes setup. If you clone it, install it, it should work

For me it still does not work, the problem is that when trying to leave it in backgroundMode, the exit event starts and closes the modal and therefore the video directly.

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 which par of the plug-in are you talking about the browser or the native ios? Going in the background means for me Tha if you go home to select another app the application continue to run on the background so you can still hear the video sound but not the video itself and when you re-open the app the video continue to play this is what the app is doing

from capacitor-video-player.

ramses512 avatar ramses512 commented on July 23, 2024

@ramses512 which par of the plug-in are you talking about the browser or the native ios? Going in the background means for me Tha if you go home to select another app the application continue to run on the background so you can still hear the video sound but not the video itself and when you re-open the app the video continue to play this is what the app is doing

I want to keep the video in the background and be able to watch it while I'm in another app.

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 i think what you are asking is more the picture-in-picture mode. I will look at it and depending on the complexity i will decide if it may be implemented

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 in the release3.3.1-1 the Picture in Picture mode has been added to the Android Plugin. Can you test it and tell me if it is what you were looking for. Enjoy it

from capacitor-video-player.

ramses512 avatar ramses512 commented on July 23, 2024

@ramses512 in the release3.3.1-1 the Picture in Picture mode has been added to the Android Plugin. Can you test it and tell me if it is what you were looking for. Enjoy it

I need for IOS thanks you!

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 release 3.3.2 implement PiP for Android and iOS Come back to me when tested

from capacitor-video-player.

jepiqueau avatar jepiqueau commented on July 23, 2024

@ramses512 Have you test it? i spent a lot of time to make it working on iOS so i hope you will look at it. Without answer from your side i will close the issue

from capacitor-video-player.

ramses512 avatar ramses512 commented on July 23, 2024

Working fine, thanks!

from capacitor-video-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.