Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Sep 23, 2024
1 parent ed64b0c commit ce1b23a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/src/livekit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc;

/// Main entry point to connect to a room.
/// {@category Room}
class LiveKitClient {
static const version = '2.2.6';

/// Initialize the WebRTC plugin. If this is not manually called, will be
/// initialized with default settings.
/// This method must be called before calling any LiveKit SDK API.
static Future<void> initialize({bool bypassVoiceProcessing = false}) async {
await rtc.WebRTC.initialize(options: {
if (bypassVoiceProcessing) 'bypassVoiceProcessing': bypassVoiceProcessing,
});
}
}

0 comments on commit ce1b23a

Please sign in to comment.