acrolink

acrolink

One to one video chat using Phoenix / Elixir / Sockets?

I want to develop a one to one video chat functionality between a) An Android based Smart TV or TV Box and b) Either a web application or an Android application (on smartphones).

My questions:

A) Is it possible to achieve this using direct communication between the two endpoints or is it a must to use a specialized cloud service like Agora (use their SDK and infrastructure)?

B) Is it a must to set up a server in between the two clients. If so, what are the functions this server would do? Is it a must to stream the video to the in between server which in turn serves it to the other endpoint?

C) Is it possible to stream the video using Phoenix channels?

D) Any experiences, real life examples?

In any case, I prefer a solution which does not involve any 3rd party providers or additional server setups.

Your ideas are invaluable.

Most Liked

idi527

idi527

:waving_hand:

A) Yes, check out webrtc. Some smart tvs might support it.

B) If webrtc is not supported, or the smart tvs can’t setup a direct connection, a server would act as a relay for the media packets.

C) It is possible, but since it’s tcp, and media is preferably streamed over udp, it would be a bad choice.

acrolink

acrolink

I have set up a TURN server and followed the guide here:

https://github.com/webrtc/apprtc

It took some effort but it’s indeed WORKING !!

I am not sure I will be using my own TURN server, there are plenty of established platforms to make video calls but I learned new things :slight_smile: Learning is good as always.

Thanks @idi527, that was valuable.

idi527

idi527

Network Traversal Service | Twilio might be interesting for you.

Where Next?

Popular in Questions Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement