A simple question
Closed this issue · 10 comments
Hello there ! First of all thanks for making this plugin and releasing it out there.
I'm trying to setup video recording on my app, but as im sure you noticed, the Capacitor-community/camera-preview plugin video recording dosent work on IOS, also I'm not even sure it's currently maintained..
I'm trying to find a solution and found your plugin. I haven't tested it yet, but I'm sure it works :)
Anyway I wanted to ask if you plan on maintaining this plugin on the long run, since I'm looking for something that doesn't break on every new IOS/Android release ^^
Yes, I plan on maintaining this as I go and contributions are also welcome.
I will be using this plugin in an app that I'm working on.
There is a demo app in this plugin code base which you can run to try out the plugin.
There is a few extra things you need to do such has handling device orientation change and locking orientation when you start recording. But overall it is working so far.
Keep in mind that for this plugin to work, you must use it on a page level, and the page's background has to be transparent.
Plus you also need this change in your capacitor.config.ts for transparent page to work on iOS
Release 5.0.0 was missing the iOS plugin files. I've released a patch version with the fix.
@shiv19 Hey, thanks for the informations 👍
I've implemented the plugin onto my app, however this is what happens when i try to build my app for Android :
Seems like the android plugin fancycamera is not imported ? I have no idea..
@maximilien0405 Make sure you have mavenCentral in the repositories section of your app's Android project's build.gradle file.
repositories {
google()
mavenCentral()
}
@shiv19 It is there 🤔
I just checked and it's having trouble downloading fancycamera
Seems like it's an old version, i belive the latest version is 3.0.8 i think, so that might be the issue 🤔
From the fancycamera repository (https://github.com/triniwiz/fancycamera/tree/master) we can see that the group id is no longer com.github.triniwiz:fancycamera but io.github.triniwiz:fancycamera
@maximilien0405 The v3 of fancy camera has a completely different API when compared to what this plugin was originally developed on by team hive.
I didn't do a full rewrite of the plugin, I just did the bare minimum to get it working again for capacitor 5.
I just integrated this plugin in the capacitor 5 app that I'm working on with no build issues just yesterday.
I also encourage you to try cloning this repo and running the example app first.
@maximilien0405
You can also try adding this to the repositories list in your build.gradle
maven { url 'https://jitpack.io' }
I can see the version of fancycamera that this plugin uses on jitpack:
https://jitpack.io/#triniwiz/fancycamera
@shiv19 The build is working ! The maven url change worked 👍
Also just tested on my andriod device and the video recording works perfectly !
Thanks
ps: i suggest you add everything you just told me to the install documentation for the next people who will want to use your plugin, to prevent them asking the same questions as me haha