Android SDK support for custom WebRTC video stream (not from phone camera)

162 views
Skip to first unread message

Dario

unread,
Apr 1, 2021, 8:31:53 AM4/1/21
to Ant Media Server
Hi,

trying to see if can achieve the following with the AntMedia server from Android: sending multiple WebRTC streams, which are not originating from phone camera, but rather an external camera connected to a device. With Android native WebRTC implementation this is possible, but haven't seen this to be supported as part of the AntMedia Android SDK. Is this option available somehow, just I don't see it in documentation?

Is there an alternative to use WebRTC from the Android device to your SDK? (for example, using native WebRTC library and connect to the AntMedia server)

Appreciate your assistance on this one.

Thank you!
Dario

Tahir Gölge

unread,
Apr 2, 2021, 5:19:18 AM4/2/21
to Ant Media Server
Hi,

Our SDK can be thought as a free example we provide to the customers. For this case there is no such implementation from our end, however, server is perfectly capable of handling the requests if you develop the android application according to your needs. We use android native implementation in the SDK as a base and we have an example app on top of it. From the server side this can be done perfectly fine, on the android it will take some time to implement it, any commits are welcomed if you share your implementation with us, we will provide gifts in that case.

Cheers

Dario

unread,
Apr 2, 2021, 7:51:18 AM4/2/21
to Ant Media Server
Thank you for quick response, if indeed server is supporting native webrtc implementation should be able to make this working.

Dario

unread,
Apr 9, 2021, 3:31:23 AM4/9/21
to Ant Media Server
Hi again,

just to confirm we were able to adjust our solution to connect to the Ant Media server via native WebRTC. One question though: is there a way to configure AntMedia to support multiple video tracks for the same stream? (situation which is supported by native webrtc, but doesn't seem to be working out of the box with AntMedia server - sending for example 2 video tracks as part of the same stream / same connection)

Thanks in advance!

Tahir Gölge

unread,
Apr 9, 2021, 4:10:27 AM4/9/21
to Ant Media Server

Hi Dario,

Actually this is what I am working on right now. The server does kind of support the multiple tracks for a single stream, however, the codes needs a refactor. The new work I am doing will be available in 2.3.2, we are about to release 2.3.1 and it won't be ready in 2.3.1 sadly. Follow this issue on github and please comment on it if you have a suggestion.


Cheers
Reply all
Reply to author
Forward
0 new messages