Comments (13)
@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.
@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.
this should make it working
from capacitor-video-player.
@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.
this should make it working
Can you test in angular-video-player-app-starter?
from capacitor-video-player.
@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 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.
@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 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.
@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.
@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 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.
@ramses512 release 3.3.2 implement PiP for Android and iOS Come back to me when tested
from capacitor-video-player.
@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.
Working fine, thanks!
from capacitor-video-player.
Related Issues (20)
- Picture-in-Picture HOT 9
- Exit listener not working correctly on Android HOT 24
- Capacitor 5 Compatibility HOT 3
- IOS : cannot convert filePath in URL . HOT 4
- CastContext.getSharedInstance(this) is deprecated. HOT 12
- Tip: play video file from Directory.data on iOS HOT 8
- How to use in NUXT js HOT 11
- Back button is locking to portrait orientation HOT 12
- Android Custom Controls HOT 1
- Back button on media player when clicked will close an app, if opened Android TV
- URL format required for internal files reading (App crash or file not found) HOT 1
- Crash on auto fullscreen android HOT 10
- Automatic rotation on Android HOT 8
- Video Url not found error when i try to play local file HOT 12
- CapacitorVideoPlayer.getCurrentTime always returns 0
- Player not working on web platform (embedded and fullscreen) HOT 3
- Attempt to invoke interface method 'long com.google.android.exoplayer2.ExoPlayer.getCurrentPosition()' on a null object reference HOT 3
- java.lang.IllegalArgumentException: playPosition can not be negative when playing a live stream HOT 2
- Feature Request: Allow setting the Video Type in Player Options HOT 1
- Feature Request: Add Option to Finalize / Destroy / Terminate initialized Player
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-video-player.