Skip to main content
Version: 3.0

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.

    1000131640

  • Enter the Server details as wss://ant_media_server_address:Port/live/websocket

    Screenshot_20250204-210520

  • 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.

    1000131648

  • The WebRTC stream will start to play.

    1000131649

Congratulations!

You have successfully played a WebRTC stream using the Flutter SDK. Your app is now receiving live streams from the Ant Media Server, allowing you to view real-time video on your device. Enjoy exploring and interacting with live WebRTC content!