mtellect / CameraDeepAR

MIT License
32 stars 50 forks source link

Use network file with mask for switchEffect() #70

Open IraDolynska opened 2 years ago

IraDolynska commented 2 years ago

Is there any way to use file from url instead of using only assets in switchEffect method ? await _deepArController.switchEffect( Config.deepArConfig.cameraMode, "assets/look2");

Bidhanrai commented 2 years ago

Do you have hosted the AR files somewhere in server?

Why do you want to use it from url instead of assets?

IraDolynska commented 2 years ago

Do you have hosted the AR files somewhere in server?

Why do you want to use it from url instead of assets?

I am storing AR files in Firebase Storage as it suppose that there will be a lot of them, and later won't be necessary to rebuild app if I want to add new files cause app will pull them from firestore and storage thats why i want to use url (similar to Image.asset() and Image.network() use files from different paths)

If not there could be ability to use path containing (await getApplicationDocumentsDirectory()).path - not only assets so I can get file from url myself, write it to documents directory and use its path in switchEffect method

Bidhanrai commented 2 years ago

Oh ok understood. That's a legit use case.

This plugin author is not very active for upgrading this plugin i guess. So may be we should fork and make changes according to our need. And may be create a different plugin out of it and upgrade with time for the community.

I am also currently working with this plugin.

jack84156 commented 2 years ago

@IraDolynska get ready for Official Deep Ar plugin from website its self .. they gonna publish Official plugin next month .. this plugin was made by normal person using their native sdk . but it's so bad plugin ..

now https://www.deepar.ai/ they gonna publish Official one next month . keep an eyes on their website till you see the new release . they sent me Email confirming it to me