Tekin alp
Tekin alp

Reputation: 97

Using DatagramChannel to send video in java

I am trying to implement a simple server-client model to stream video. The video which is being played on server should play in client as well. I searched over the net and found that DatagramChannel in java is suitable for this. How can I send video with DatagramChannel? Or is there any other solution? Thank you.

Upvotes: 0

Views: 361

Answers (2)

Peter Lawrey
Peter Lawrey

Reputation: 533500

I wouldn't use DatagramChannel as,

  • its not suitable for braodcast over the internet,
  • its not a reliable protocol. It can be made reliable but this is not easy.

Instead I would use TCP. There are many libraries which help do with including Netty and Mina.

Upvotes: 0

Met
Met

Reputation: 3162

You could use ready solutions like Red5 server or FFMPEG-Java

Upvotes: 1

Related Questions