flutter_webrtc_wrapper 1.0.2 copy "flutter_webrtc_wrapper: ^1.0.2" to clipboard
flutter_webrtc_wrapper: ^1.0.2 copied to clipboard

Best and easy way to INTEGRATE WebRTC with Flutter.

🎥 Flutter WebRTC Wrapper #

⚡ Best and easy way to INTEGRATE WebRTC with Flutter ⚡ #

Main features of flutter_webrtc_wrapper :

  1. Simple and easy to Connect Flutter with WebRTC
  2. Plug and Play🚀
  3. Event Handlers🚀
  4. In built Methods for Meeting App🚀

Tutorial based on flutter_webrtc_wrapper plugin:

Flutter WebRTC Video Calling Meeting App - Part1 : https://youtu.be/FZDCRza5UDQ

Flutter WebRTC Video Calling Meeting App - Part2 : https://youtu.be/Jr2-pN7UPsg

🎖 Installing #

dependencies:
  flutter_webrtc_wrapper: ^<latest_version>
copied to clipboard

Usage #

⚡ Create instance of WebRTCMeetingHelper #

WebRTCMeetingHelper webRTCMeetingHelper = WebRTCMeetingHelper(
    url: "SOCKET_API_URL",
    meetingId: meetingId,
    userId: userId,
    name: userName,
);

copied to clipboard

⚡ Set local Stream #

MediaStream _localstream = await navigator.mediaDevices.getUserMedia(mediaConstraints);

_localRenderer.srcObject = _localstream;

webRTCMeetingHelper!.stream = _localstream;

copied to clipboard

⚡ Events #

webRTCMeetingHelper!.on('open', null, (ev, context) {
   
});

webRTCMeetingHelper!.on('connection', null, (ev, context) {

});

webRTCMeetingHelper!.on('user-left', null, (ev, ctx) {

});

webRTCMeetingHelper!.on('video-toggle', null, (ev, ctx) {
   
});

webRTCMeetingHelper!.on('audio-toggle', null, (ev, ctx) {
  
});

webRTCMeetingHelper!.on('meeting-ended', null, (ev, ctx) {
  
});

webRTCMeetingHelper!.on('connection-setting-changed', null, (ev, ctx) {
  
});

webRTCMeetingHelper!.on('stream-changed', null, (ev, ctx) {

});

copied to clipboard

⚡ Methods #

  1. toggleAudio Used for toggeling Audio on/off.
webRTCMeetingHelper!.toggleAudio();

copied to clipboard
  1. toggleVideo Used for toggeling Video on/off.
webRTCMeetingHelper!.toggleVideo();

copied to clipboard
  1. endMeeting Used for Ending Meeting.
webRTCMeetingHelper!.endMeeting();

copied to clipboard
  1. reconnect Used for Reconnecting Meeting.
WebRTCMeetingHelper!.reconnect();

copied to clipboard
  1. destroy Used for End/Destory Meeting Helper object.
webRTCMeetingHelper!.destroy();

copied to clipboard

⚡ Donate #

If you like my work, you can support me buying a cup of ☕

Code and documentation Copyright 2022 SnippetCoder. Code released under the Apache License. Docs released under Creative Commons.

20
likes
110
points
83
downloads

Publisher

verified publishersnippetcoder.com

Weekly Downloads

2024.10.05 - 2025.04.19

Best and easy way to INTEGRATE WebRTC with Flutter.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

eventify, flutter, flutter_webrtc, socket_io_client

More

Packages that depend on flutter_webrtc_wrapper