Skip to content

Support video option on Android #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
namnm opened this issue May 4, 2020 · 24 comments
Open
2 tasks done

Support video option on Android #193

namnm opened this issue May 4, 2020 · 24 comments

Comments

@namnm
Copy link

namnm commented May 4, 2020

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • Android

Description

Look like ConnectionService support video call, can we add support for it in this RN module?

@danjenkins
Copy link
Collaborator

danjenkins commented May 6, 2020 via email

@namnm
Copy link
Author

namnm commented May 6, 2020

@danjenkins Which branch you mean?

@danjenkins
Copy link
Collaborator

It's on the nimbleape GitHub org - currently on my phone will find it once I'm at my desk for you

@namnm
Copy link
Author

namnm commented May 6, 2020

Thanks. I think this one: https://github.com/nimbleape/react-native-callkeep-1/tree/allow-non-numbers-and-android-video

I'll take a look. Although video option is not a critical requirement for us now, but soon or later we will need it.

@sboily
Copy link
Member

sboily commented Jun 4, 2020

@danjenkins how can we help you to finish this branch? We are currently working to integrate video calls in our application and we will work to integrate video on callkeep, but it will be probably better to work together to don't reinvented the wheel ;-) CC @manuquentin

@danjenkins
Copy link
Collaborator

@sboily I could move the branch over to this repo for starters?

For me, I think the main part thats missing is the VideoProvider class ? I think....

https://developer.android.com/reference/android/telecom/Connection.VideoProvider

But more than happy to move that branch over, or I can give you guys access into the nimble ape repo.

@sboily
Copy link
Member

sboily commented Jun 4, 2020

@danjenkins yes i haven't any objections to do that. If it help people to contribute it, no worry.

@danjenkins
Copy link
Collaborator

@sboily the code is now in branch react-native-webrtc/react-native-callkeep#allow-non-numbers-and-android-video , however it currently does multiple things... (it was a branch for a client that I'm not done with) - firstly - disables hold support (we need to be able to enable/disable this thorugh config options), enables support for the sip scheme, and does enough work for video support to work but needs extra work!

@sboily
Copy link
Member

sboily commented Jun 9, 2020

@danjenkins can you make this branch as a PR to discuss directly in the PR. And can you give us more information about the extra work needs you think?

@sboily
Copy link
Member

sboily commented Jun 9, 2020

iOS video support #181

@alebagran
Copy link

Hi, is there any news on video call implementation?

@luxiliu
Copy link

luxiliu commented Jul 3, 2020

Hi @danjenkins , apart from VideoProvider, using own ui to display call also needs to be considered.

@danjenkins
Copy link
Collaborator

@luxiliu there's already a feature request for it in the issues tracker. If you want to build the code and contribute it, the collaborators will get to it when any of us get time. Building real time Comms apps on native is incredibly complex and we all have day jobs. None of us build things and keep them private, they immediately go public. Have the common decency to read through the issues and see whats already been asked for and stop wasting people's time. If you had you'd have seen that someone has already built most of this functionality bit hasn't got the time to integrate it back into this repo right now - if you need this functionality then you could use the form that's been listed in an issue for over 6 months.

Think before commenting. Please.

@danjenkins
Copy link
Collaborator

Hi, is there any news on video call implementation?

Nope... Otherwise there would have been a comment or a PR closing this......

Seriously, please start considering collaborators have lives and jobs before commenting asking for updates when if there was..... They would have already been posted here.

@luxiliu
Copy link

luxiliu commented Jul 3, 2020

@danjenkins , I think you misunderstood what I meant. I was not pushing you for a pr or a fix. I was just saying it is also an option, which need to consider just incase you're developing it.

Think before replying. Please.

@danjenkins
Copy link
Collaborator

@luxiliu my point would be that if this gets done before that work (99% probably this way around) then that work would be done as part of that other PR.

@luxiliu
Copy link

luxiliu commented Jul 3, 2020

@danjenkins unfortunately, i didn't get ur point.

@meliodev
Copy link

meliodev commented Jul 9, 2020

@danjenkins Thank you so much guys for your efforts and the great support you provide for the react native community. My respects !

@meliodev
Copy link

meliodev commented Jul 9, 2020

Hey guys again, please I need a small help. I am using agora.io, and I am trying to build a video call functionality with ringing tone on android.
I used the example in the branch 'allow-non-numbers-and-android-video'. So when I call the function displayIncomingCall, even after I set the parameter 'hasVideo' to true, I still get the UI of a voice call after the call is answered.
Can somebody please give some tips to make the Video call UI displayed on call answer.

@luxiliu
Copy link

luxiliu commented Jul 10, 2020

Hey guys again, please I need a small help. I am using agora.io, and I am trying to build a video call functionality with ringing tone on android.
I used the example in the branch 'allow-non-numbers-and-android-video'. So when I call the function displayIncomingCall, even after I set the parameter 'hasVideo' to true, I still get the UI of a voice call after the call is answered.
Can somebody please give some tips to make the Video call UI displayed on call answer.

Either you need a VideoProvider or you need to implement your own UI for the video call.

@meliodev
Copy link

@luxiliu I would like to use my own UI, but the issue is that I couldn't figure out how to configure the button 'answer call' to navigate to my own UI for video call. Please, do you have a solution for this ?

@luxiliu
Copy link

luxiliu commented Jul 10, 2020

@luxiliu I would like to use my own UI, but the issue is that I couldn't figure out how to configure the button 'answer call' to navigate to my own UI for video call. Please, do you have a solution for this ?

Some of us are working on this PR #237. There's a newly added event RNCallKeepPerformShowIncomingCallAction. When receiving this event, you could show your own ui

@meliodev
Copy link

@luxiliu I would like to use my own UI, but the issue is that I couldn't figure out how to configure the button 'answer call' to navigate to my own UI for video call. Please, do you have a solution for this ?

Some of us are working on this PR #237. There's a newly added event RNCallKeepPerformShowIncomingCallAction. When receiving this event, you could show your own ui

Perfect !

@namnm
Copy link
Author

namnm commented Jul 10, 2020

@luxiliu Just take a look as your PR and it's promising. There's something I want to ask, that if you tried the backToForeground method when app is killed?

I tested it like: if user click on answer button then call that method. And look like it works when app in background.
When app is killed and receive the notification, Im able to show the incoming call, but not able to open the app when click on the answer button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants