Skip to main content

P2P Communication Sample in Flutter

In order to run the peer sample app, select the Peer application from the target list and click the Run button. Once the app is installed and running on your device, enter the server IP address. To enter the IP address, please follow the below steps.

  • Tap on the Setting icon in the top right corner of the application.
  • Enter the Server IP as ws://ant_media_server_address:Port/WebRTCAppEE/websocket
  • Click Set Server Ip button to save it.

  • Select P2P from the list item.

  • Enter the streamId that you want to join in mode.

When there is another peer connected to the same streamId via Android, iOS, or the web, P2P communication will be established, and you can talk to each other.

You can quickly join as a peer to the same streamId via the peer-to-peer sample page.

https://your_domain:5443/WebRTCAppEE/peer.html