Playing WebRTC stream sample in 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. Play the WebRTC Stream.
-
Before playing, make sure that there is a stream that is already publishing to the server with the same streamId that you want to play.
-
Select the Play option from the list & enter the streamId.
-
The WebRTC stream will start to play.