svara_flutter_sdk 0.1.0 copy "svara_flutter_sdk: ^0.1.0" to clipboard
svara_flutter_sdk: ^0.1.0 copied to clipboard

The provided package, SvaraServices, is a Flutter-based WebRTC (Web Real-Time Communication) service that facilitates real-time audio and video communication over WebSockets.

Svara - Flutter SDK #

Overview #

Svara is a Flutter SDK that provides WebRTC-based real-time communication using the mediasoup framework. This package enables seamless video/audio streaming, room management, and user data handling for Flutter applications.

Features #

  • WebRTC-based real-time audio/video communication
  • Room creation and management
  • User data handling and synchronization
  • Mute/unmute functionality
  • Producer and consumer transport management
  • Event-based communication handling

Getting Started #

Prerequisites #

Ensure you have Flutter installed and set up properly. You can check the official Flutter installation guide here.

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  svara:
    git:
      url: https://github.com/avionIO/Svara-Flutter-Sdk

Then, run:

flutter pub get

Usage #

Import the Package #

import 'package:svara/svara.dart';

Initialize Svara #

Svara svara = Svara();

void main() {
  svara.create('yourAppId', 'yourSecretKey', YourEventHandler());
}

Create a Room #

svara.createRoom({
  'username': 'John Doe',
  'role': 'host',
});

Join a Room #

svara.joinRoom('roomId123', {
  'username': 'Jane Doe',
  'role': 'guest',
}, true, true);

Mute/Unmute Microphone #

svara.muteMic();
// To unmute
svara.unMuteMic();

Leave Room #

svara.leaveRoom("Leaving due to connection issue");

End Room #

svara.endRoom();

Additional Information #

Contributing #

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

Issues and Support #

If you encounter any issues, please file a report on the GitHub Issues page.

License #

This project is licensed under the MIT License - see the LICENSE file for details.


Developed with ❤️ by Svara

0
likes
130
points
93
downloads

Publisher

verified publishersvara.live

Weekly Downloads

The provided package, SvaraServices, is a Flutter-based WebRTC (Web Real-Time Communication) service that facilitates real-time audio and video communication over WebSockets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_webrtc, mediasfu_mediasoup_client, permission_handler, wakelock_plus, web, web_socket_channel

More

Packages that depend on svara_flutter_sdk