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

Backend-only Volorio REST client for creating RTC sessions and sending heartbeats.

example/main.dart

import 'dart:io';

import 'package:volorio_core/volorio_core.dart';
import 'package:volorio_server/volorio_server.dart';

Future<void> main() async {
  final apiKey = Platform.environment['VOLORIO_API_KEY'];
  if (apiKey == null || apiKey.isEmpty) {
    print('Set VOLORIO_API_KEY before running this example.');
    return;
  }

  final client = VolorioServerClient(
    apiBaseUrl: 'https://api.volor.io',
    apiKey: apiKey,
  );

  final session = await client.createRoomSession(
    const CreateVolorioRoomSessionInput(
      clientId: 'app_example',
      projectId: 'proj_example',
      roomId: 'audio-party-example',
      identity: 'server-user-example',
      quality: VolorioMediaQuality.voice,
      products: [VolorioProductId.rtcVoice],
    ),
  );

  print(session.sessionId);
}
0
likes
0
points
93
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Backend-only Volorio REST client for creating RTC sessions and sending heartbeats.

Homepage
Repository (GitHub)
View/report issues

Topics

#volorio #server #rtc #api #billing

License

unknown (license)

Dependencies

http, volorio_core

More

Packages that depend on volorio_server