volorio_audio_room 0.2.0 copy "volorio_audio_room: ^0.2.0" to clipboard
volorio_audio_room: ^0.2.0 copied to clipboard

High-level Volorio Flutter SDK for audio party rooms with RTC, RTM, chat, and usage heartbeat.

example/main.dart

import 'dart:convert';

import 'package:flutter/widgets.dart';
import 'package:http/http.dart' as http;
import 'package:volorio_audio_room/volorio_audio_room.dart';
import 'package:volorio_core/volorio_core.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final room = VolorioAudioRoomClient(
    sessionLoader: (request) async {
      final response = await http.post(
        Uri.parse('https://your-api.example.com/volorio/audio-room/session'),
        headers: {'content-type': 'application/json'},
        body: jsonEncode({
          'clientId': request.clientId,
          'projectId': request.projectId,
          'roomId': request.roomId,
          'identity': request.identity,
        }),
      );
      return VolorioRoomSession.fromJson(jsonDecode(response.body) as Map<String, Object?>);
    },
  );

  await room.join(
    const VolorioAudioRoomJoinRequest(
      clientId: 'app_example',
      projectId: 'proj_example',
      roomId: 'audio-party-example',
      identity: 'user_example',
    ),
  );
}
0
likes
140
points
67
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

High-level Volorio Flutter SDK for audio party rooms with RTC, RTM, chat, and usage heartbeat.

Homepage
Repository (GitHub)

Topics

#volorio #audio-room #voice-chat #rtc #flutter

License

MIT (license)

Dependencies

flutter, volorio_chat, volorio_core, volorio_rtc, volorio_rte, volorio_rtm

More

Packages that depend on volorio_audio_room