Android MediaRecorder setOutPutFile() to stream using Socket

后端 未结 1 1899
粉色の甜心
粉色の甜心 2021-02-08 16:42

I am developing an Android app that should be capable of streaming video to a local server on my network without storing it on SD card.

For this I have made simple socke

相关标签:
1条回答
  • 2021-02-08 16:54

    There was problem in my server code.

    I had to use TcpListener in place of TcpClient.

    Following is the correct code:

    TcpListener listener = new TcpListener(ipAddress, 8210);
    Socket s = listener.AcceptSocket();
    NetworkStream ns = new NetworkStream(s);
    .
    .
    .
    //reading the data from stream
    .
    .
    .
    
    0 讨论(0)
提交回复
热议问题