Probably, this is a complicated question, but I would try to shoot.
I use Monodroid(Mono for Android),and try to implement media stream to UDP socket.
Best way to stream audio and video from an Android phone to a RTMP server
This is a useful pointer for me as a result to take advantage of FileDescriptor
However, basically, FileDescriptor is a UNIX oriented concept, and Mono(.net) is Windows oriented conept, it appears the UDPClient class of .net does not support to obtain FileDescriptor for the instance.
Is there any way to obtain FileDescriptor with Mono(.net)?
It seems Android doesn't natively support UDP streaming: Network Protocols, so yes you should look for RTMP server option and no you probably can't use UdpClient
.
The code in the answer to Best way to stream audio and video from an Android phone to a RTMP server is fairly easy to convert to C#. LocalServerSocket
, LocalSocket
and LocalSocketAddress
are in the Android.Net
namespace and so is FileDescriptor
in Java.IO
.