Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Dec 9, 2024
1 parent e846e0c commit b87a3e4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ doc/api/
*.js_
*.js.deps
*.js.map

.DS_Store
.flutter-plugins
13 changes: 7 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:logging/logging.dart';
import 'package:intl/intl.dart';
import 'package:responsive_builder/responsive_builder.dart';

import 'src/utils.dart';
//import 'src/utils.dart';

void main() {
final format = DateFormat('HH:mm:ss');
Expand Down Expand Up @@ -39,8 +39,7 @@ class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});

final url = 'ws://localhost:7880';
final token =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzQ3NDE4ODgsImlzcyI6IkFQSXJramtRYVZRSjVERSIsIm5hbWUiOiJtYWMiLCJuYmYiOjE3MzI5NDE4ODgsInN1YiI6Im1hYyIsInZpZGVvIjp7ImNhblVwZGF0ZU93bk1ldGFkYXRhIjp0cnVlLCJyb29tIjoibGl2ZSIsInJvb21Kb2luIjp0cnVlfX0.UzCvXREqMJxrkIsnjBsVCY78oA03flEaolNlDL9IGws';
final token = 'your_token_here';

/// handle join button pressed, fetch connection details and connect to room.
// ignore: unused_element
Expand Down Expand Up @@ -122,8 +121,8 @@ class MyHomePage extends StatelessWidget {
/// show participant loop
ParticipantLoop(
showAudioTracks: true,
showVideoTracks: false,
showParticipantPlaceholder: false,
showVideoTracks: true,
showParticipantPlaceholder: true,

/// layout builder
layoutBuilder:
Expand All @@ -140,7 +139,9 @@ class MyHomePage extends StatelessWidget {
child: Stack(
children: [
/// video track widget in the background
identifier.isAudio
identifier.isAudio &&
roomCtx
.enableAudioVisulizer
? const AudioVisualizerWidget()
: IsSpeakingIndicator(
builder: (context,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/context/room_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class RoomContext extends ChangeNotifier with ChatContextMixin {
/// Get the [Room] instance.
Room get room => _room;

///
/// enable audio visualizer
final bool enableAudioVisulizer;

String? _roomName;
Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ dependencies:
google_fonts: ^6.2.1
http: ^1.2.2
intl: ^0.19.0
livekit_client:
path: ../client-sdk-flutter
livekit_client: ^2.3.2
provider: ^6.1.2
responsive_builder: ^0.7.1

Expand Down

0 comments on commit b87a3e4

Please sign in to comment.