Data Channel Sample for Flutter
Step 1. Set the Server Address.
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 details as
wss://ant_media_server_address:Port/live/websocket
-
Click Set Server Ip button to save it.
Step 2. Using data channel
-
Select DataChannel from the list & enter the streamId.
-
Once the stream is published, the user can start sending messages using the send button and also see the received messages from other users.
-
You can quickly play the stream via the sample page and send and receive the data channel messages.
https://your-domain:5443/live/player.html