fishjam-dev / react-native-membrane-webrtc

Apache License 2.0
78 stars 8 forks source link

Using react-native-webrtc #113

Closed taimoorInvoZone closed 1 year ago

taimoorInvoZone commented 1 year ago

We are using react-native-webrtc in our app and we tried to use this package along with it however on build there were duplicate classes issues of these two packages conflicting with each other, react-native-webrtc and @jellyfish/react-native-membrane-webrtc, is there any way i can use both packages?

skyman503 commented 1 year ago

You don't need to use react-native-webrtc since @jellyfish/react-native-membrane-webrtc contains all of the webrtc logic, so if you wish to use jellyfish this library should be enough.

taimoorInvoZone commented 1 year ago

But i was already using react-native-webrtc packages, logic in my app, i need to further use membrane logic too, so what would i need to change to keep both logics.

graszka22 commented 1 year ago

Hi @taimoorInvoZone!

taimoorInvoZone commented 1 year ago

It seems, there has been a misunderstanding. I have two modules in my app, one is an audio call feature i have developed some time ago using another server that was based on react-native-webrtc, it is working. Now, i wanted to use your example app with the main application, and i was able to achieve that after removing the react-native-webrtc package and audio call. Now I want to use both but when I build using both packages it shows duplicate classes error, however there shouldn't be any link between these 2 packages.

graszka22 commented 1 year ago

Ah you mean this library: https://github.com/react-native-webrtc/react-native-webrtc Well it's possible we have similar dependencies since we're doing similar thing. If I were you I'd decide to use just one library for webrtc if possible. It will be better for performance and maintenance of your app in the long term. Our sdk supports also audio only calls (I know one of the users uses it for just audio calls).

taimoorInvoZone commented 1 year ago

Thanks for the clarification. I guess, I have to use only one package in my app.