react-native-deepar icon indicating copy to clipboard operation
react-native-deepar copied to clipboard

Streaming DeppAR view

Open ghost opened this issue 3 years ago • 10 comments

How can I broadcast this view for streaming follow, like RTMP server?

ghost avatar Oct 26 '22 08:10 ghost

hi did u found any solution?

fukemy avatar Jun 15 '23 07:06 fukemy

I created a separate library by using almost the same code base and added Amazon IVS on top of it to stream deeparView

https://github.com/GeekyAnts/rn-dogo-deepar-ivs

This also works with custom RTMP Servers

hasnentai avatar Jun 22 '23 01:06 hasnentai

thanks so much @hasnentai , can u make a tutorial how to streaming deepArView to help any other people?

fukemy avatar Jun 22 '23 02:06 fukemy

Hi @fukemy There is an example app in the package I created https://github.com/GeekyAnts/rn-dogo-deepar-ivs/tree/main/example and below is the code ref

https://github.com/GeekyAnts/rn-dogo-deepar-ivs/blob/faa7c2e1399061dea90151ee0c7255a9fc899ed8/example/src/screens/CameraScreen.tsx#L300-L307

hasnentai avatar Jun 22 '23 05:06 hasnentai

thanks @hasnentai , I am reading the code, can i ask a deep question? I want to see how you interact with the deepAr frame modified with the IVS broadcast, but I can only find this line:

broadcastSession.start(rtmpsServer, this.streamKey);

Can you give me some advice, I really want to know that way, because I want to get the frame and send it's over my local stream from WebRTC :)

fukemy avatar Jun 22 '23 06:06 fukemy

Where did you find this code? can help or provide a file link here? it has been months since I have worked on this and now I am not sure where is this code.

hasnentai avatar Jun 22 '23 07:06 hasnentai

@hasnentai I saw from here

I am trying to find the way you captured the frame then send it's to IVS server

fukemy avatar Jun 22 '23 07:06 fukemy

@fukemy This line is from native sdk of IVS and here is how we are attaching surface

hasnentai avatar Jun 22 '23 07:06 hasnentai

Hi @hasnentai It's seem the IVS frameworks can help much for initiate the config with DeepAR SDK by some lines of code.

I am looking for the solution since 1 months, the first thing I've found is Agora SDK, they can intergrate with DeepAr using this line:

AgoraSDK.pushExternalVideoFrame(frame) <- here is frame got from `DeepAR SDK`

But Im not sure how implement of pushExternalVideoFrame function. Still waiting for some solution, thanks you

fukemy avatar Jun 22 '23 07:06 fukemy

@fukemy I got stuck at same place and then moved to IVS

hasnentai avatar Jun 22 '23 07:06 hasnentai