How can I code a server/client video and audio streaming application?

后端 未结 3 1413
时光取名叫无心
时光取名叫无心 2020-12-13 16:32

I have to create a client/server system to stream video and audio. It would be very simple. Like youtube style. The server should attend clients providing a list of medias f

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 16:57

    Guys thank you very much for your answers and for editing title. I'm new here, new on java, new on networking. Why I'm making my skill on streaming? It's a study case. I'm looking at many tutorial about networking and I saw RTP but I didn't read about 'cause I thought (for reading on forums) it was just for real time streming meant as webcam streaming...but it's that I'm just so confused LOL

    Lirik of course what you said, I forgot some lines of coding

    while(true) {
       Socket incoming = s.accept();
       Runnable r = new ThreadedEchoHandler(incoming, i);
       ...
    

    or as you said

    while(true) {
      Runnable r = new ThreadedEchoHandler(s.accept(), i); 
      ...
    

    Taking a look at what you said guys. Kind regards!

提交回复
热议问题