I want to use DIAL Protocol in my video streaming application, my application is an sample application and only plays HLS sample stream using VideoView.
I want to integrate DIAL protocol (http://www.dial-multiscreen.org) in my application to stream the video on TV or other DIAL supported server devices. I have few questions.
1). You only need to implement the client if you are going to be talking to existing server apps (like talking to a smart TV or Chromecast from a phone app). If you do this, you will basically be building an app to do things like trigger playing YouTube videos on a TV from a phone. If you want to implement playing back different media, you will need to implement a DIAL server as well.
2). You can test it with any server that implements the server-side of the DIAL protocol, so two phones would be fine as a proof of concept but having the client and server both be on phones isn't very useful in practice. Having the client run on a phone and the server run from a PC would be a more realistic situation, or test against a smart TV or Chromecast that implements the DIAL server side protocol. If you test using two phones, you will definitely need to implement both the server and client side of the DIAL protocol.
3) You're certainly not required to use the sample code. Implementing the protocol in Java using standard HTTP-speaking classes would probably be simpler. Don't know of an existing Java implementation, but it wouldn't be too hard to implement.
4) Don't know of any sample code available, but anything that supports Chromecast (like the Netflix and YouTube apps) includes DIAL client functionality- look around for open-source apps that support streaming content to Chromecast.
5) If you are only implementing client-side content, then you have no need to register any names. You need to register a name only if you are going to be distributing server apps. See here for details: http://www.dial-multiscreen.org/dial-registry