Android Question Make a video call in background

youjunjer

Member
Licensed User
Longtime User
I have a project to help Emergency Medical Technician for connecting to the hospital.
When EMT do the operation, he make a voice and video call to center on android to get some advices from doctors.
After operation, this video and voice will be recorded on the server become
evidence.
But voice call is only one part of this app, we provide operation brife, location, gis, navigation, and some other features.
So this function will run at background, it can't be skype or facebook that app will take control of phone.
But if skype facebook facetime open some api or sdk for making call in background will be fine for this project.
Anyone has good ideas?
 

MarcoRome

Expert
Licensed User
Longtime User
I have a project to help Emergency Medical Technician for connecting to the hospital.
When EMT do the operation, he make a voice and video call to center on android to get some advices from doctors.
After operation, this video and voice will be recorded on the server become
evidence.
But voice call is only one part of this app, we provide operation brife, location, gis, navigation, and some other features.
So this function will run at background, it can't be skype or facebook that app will take control of phone.
But if skype facebook facetime open some api or sdk for making call in background will be fine for this project.
Anyone has good ideas?

Look THIS, also THIS, THIS or THIS wrapper
 
Upvote 0

youjunjer

Member
Licensed User
Longtime User
Dear MacroRome
Thx for your reply.
I read your suggest. it's very helpful
But my project want to make a video call at background. If my app make a skype intent, skype will take over the phone.
So, may I comnbine skype to my app? such as I open a panel in my app for skype?
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
In your browser digit:
B4X:
https://nameless-wildwood-15071.herokuapp.com/r/58679796

In you App add this code ( in Activity_Create example )
B4X:
 Dim videofeedcount As String = DateTime.Now
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, "https://nameless-wildwood-15071.herokuapp.com/r/58679796")
    StartActivity(i)

You are connect !!
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
I have a project to help Emergency Medical Technician for connecting to the hospital.
When EMT do the operation, he make a voice and video call to center on android to get some advices from doctors.
After operation, this video and voice will be recorded on the server become
evidence.
But voice call is only one part of this app, we provide operation brife, location, gis, navigation, and some other features.
So this function will run at background, it can't be skype or facebook that app will take control of phone.
But if skype facebook facetime open some api or sdk for making call in background will be fine for this project.
Anyone has good ideas?

Anyway pls the new time post this thread in right Place ( "QUESTION")

upload_2017-4-3_16-27-24.png


Thank you
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I guess the ideal solution for WebRTC is to set up your own server so one does not depend on other sites.
 
Upvote 0

kostefar

Active Member
Licensed User
Longtime User
In your browser digit:
B4X:
https://nameless-wildwood-15071.herokuapp.com/r/58679796

In you App add this code ( in Activity_Create example )
B4X:
 Dim videofeedcount As String = DateTime.Now
    Dim i As Intent
    i.Initialize(i.ACTION_VIEW, "https://nameless-wildwood-15071.herokuapp.com/r/58679796")
    StartActivity(i)

You are connect !!

In fact that URL is one of the signalling servers I set up. It´s just code that I´ve copied and obviously I´m more than happy to have contributed with something - with or without my knowledge :D
I can´t guarantee though that it´ll stay there forever, but I´d be very willing to help out with guidance to how you can set this stuff up for yourself on a free heroku account. It did take a while for me, since I had no clue about what node.js is. There are some limitations on free accounts, and I´m not gonna use heroku forever but it´s a good place to be for testing things.
I would however never use that link for something as important as what we´re talking about here - it could be a matter of life and death, and that´s definately not what herokus free service is for.
Again, give me a shout if you need direction.. I´ve been struggling with webrtc the last month and may know the answers to some of the questions you´ll come up with.
 
Upvote 0

coslad

Well-Known Member
Licensed User
Longtime User
OK I will try it ,but tell me ,from b4a side what have you done ? Can you share a little part of code ?
 
Upvote 0
Top