Skip to content

Commit

Permalink
commented buffer_stream/websocket.dat example
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Nov 13, 2024
1 parent 6255e54 commit 687934b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/lib/buffer_stream/websocket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ import 'package:flutter_soloud_example/buffer_stream/ui/buffer_widget.dart';
import 'package:logging/logging.dart';
import 'package:web_socket_channel/web_socket_channel.dart';

/// This example shows how to use BufferStream with a websocket.
///
/// You must have a server which streams audio data. Here a repo that uses
/// websocketd as a server and ffmpeg to provide audio data:
/// https://github.com/alnitak/websocketd
///
/// Run it and choose which audio format you want to stream and the speed for
/// testing BufferStream buffering.
/// Then run this example and choose the same audio format.
void main() async {
// The `flutter_soloud` package logs everything
// (from severe warnings to fine debug messages)
Expand Down

0 comments on commit 687934b

Please sign in to comment.