ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

Attachment Upload Progress #159

Closed mikeangelsilva closed 3 years ago

mikeangelsilva commented 3 years ago

Does the react native sdk supports upload progress in single or multiple uploads?

Thanks!!

DaveLomber commented 3 years ago

@mikeangelsilva a 'fetch' API is used under the hood in ConnectyCube.storage.createAndUpload which does not support the upload progress

https://developers.connectycube.com/js/messaging?id=attachments-photo-video

As an alternative way:

mikeangelsilva commented 3 years ago

Thanks for the reply.

Also wanna ask about video calling. We want to integrate a face filter sdk/augmented reality sdk in video calls. Is it possible to do that?

Thank You.

On Wed, Dec 2, 2020 at 3:18 PM Dave Pol Lomber notifications@github.com wrote:

@mikeangelsilva https://github.com/mikeangelsilva a 'fetch' API is used under the hood in ConnectyCube.storage.createAndUpload which does not support the upload progress

https://developers.connectycube.com/js/messaging?id=attachments-photo-video

As an alternative way:

  • call ConnectyCube.storage.create
  • use some other lib to upload a file, with progress
  • call ConnectyCube.storage.markUploaded({ id: xx, size: cc })

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/connectycube-reactnative-samples/issues/159#issuecomment-737044212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIBLQDLXHMV6WSXM5UW5RDSSXS4NANCNFSM4UJ4LTJA .

DaveLomber commented 3 years ago

Yes it should be possible

There are many libs that allow to do it,

for example https://github.com/jeeliz/jeelizFaceFilter

You have an access to media stream , so basically you can attach the lib to it to get filters