index.dart 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import 'dart:io';
  2. import 'package:agora_rtc_engine_example/examples/advanced/music_player/music_player.dart';
  3. import 'package:agora_rtc_engine_example/examples/advanced/push_encoded_video_frame/push_encoded_video_frame.dart';
  4. import 'package:agora_rtc_engine_example/examples/advanced/push_video_frame/push_video_frame.dart';
  5. import 'package:agora_rtc_engine_example/examples/advanced/rtmp_streaming/rtmp_streaming.dart';
  6. import 'package:agora_rtc_engine_example/examples/advanced/screen_sharing/screen_sharing.dart';
  7. import 'package:agora_rtc_engine_example/examples/advanced/send_multi_camera_stream/send_multi_camera_stream.dart';
  8. import 'package:agora_rtc_engine_example/examples/advanced/send_multi_video_stream/send_multi_video_stream.dart';
  9. import 'package:agora_rtc_engine_example/examples/advanced/set_beauty_effect/set_beauty_effect.dart';
  10. import 'package:agora_rtc_engine_example/examples/advanced/set_encryption/set_encryption.dart';
  11. import 'package:agora_rtc_engine_example/examples/advanced/set_video_encoder_configuration/set_video_encoder_configuration.dart';
  12. import 'package:agora_rtc_engine_example/examples/advanced/spatial_audio_with_media_player/spatial_audio_with_media_player.dart';
  13. import 'package:agora_rtc_engine_example/examples/advanced/start_direct_cdn_streaming/start_direct_cdn_streaming.dart';
  14. import 'package:agora_rtc_engine_example/examples/advanced/start_local_video_transcoder/start_local_video_transcoder.dart';
  15. import 'package:agora_rtc_engine_example/examples/advanced/stream_message/stream_message.dart';
  16. import 'package:agora_rtc_engine_example/examples/advanced/take_snapshot/take_snapshot.dart';
  17. import 'package:flutter/foundation.dart';
  18. import 'audio_mixing/audio_mixing.dart';
  19. import 'audio_spectrum/audio_spectrum.dart';
  20. import 'channel_media_relay/channel_media_relay.dart';
  21. import 'device_manager/device_manager.dart';
  22. import 'enable_virtualbackground/enable_virtualbackground.dart';
  23. import 'join_multiple_channel/join_multiple_channel.dart';
  24. import 'media_player/media_player.dart';
  25. import 'media_recorder/media_recorder.dart';
  26. import 'precall_test/precall_test.dart';
  27. import 'process_audio_raw_data/process_audio_raw_data.dart';
  28. import 'process_video_raw_data/process_video_raw_data.dart';
  29. import 'send_metadata/send_metadata.dart';
  30. import 'set_content_inspect/set_content_inspect.dart';
  31. import 'start_rhythm_player/start_rhythm_player.dart';
  32. import 'voice_changer/voice_changer.dart';
  33. /// Data source for advanced examples
  34. final advanced = [
  35. {'name': 'Advanced'},
  36. {'name': 'AudioMixing', 'widget': const AudioMixing()},
  37. {'name': 'ChannelMediaRelay', 'widget': const ChannelMediaRelay()},
  38. if (kIsWeb || !(Platform.isAndroid || Platform.isIOS))
  39. {'name': 'DeviceManager', 'widget': const DeviceManager()},
  40. {'name': 'JoinMultipleChannel', 'widget': const JoinMultipleChannel()},
  41. {'name': 'RtmpStreaming', 'widget': const RtmpStreaming()},
  42. if (!kIsWeb) {'name': 'ScreenSharing', 'widget': const ScreenSharing()},
  43. {'name': 'SetEncryption', 'widget': SetEncryption()},
  44. {
  45. 'name': 'SetVideoEncoderConfiguration',
  46. 'widget': const SetVideoEncoderConfiguration()
  47. },
  48. {'name': 'StreamMessage', 'widget': const StreamMessage()},
  49. {'name': 'VoiceChanger', 'widget': const VoiceChanger()},
  50. {
  51. 'name': 'EnableVirtualBackground',
  52. 'widget': const EnableVirtualBackground()
  53. },
  54. {'name': 'MediaPlayer', 'widget': const MediaPlayer()},
  55. {'name': 'SendMultiVideoStream', 'widget': const SendMultiVideoStream()},
  56. {'name': 'TakeSnapshot', 'widget': const TakeSnapshot()},
  57. {
  58. 'name': 'StartDirectCDNStreaming',
  59. 'widget': const StartDirectCDNStreaming()
  60. },
  61. {'name': 'SendMetadata', 'widget': const SendMetadata()},
  62. {'name': 'SetBeautyEffect', 'widget': const SetBeautyEffect()},
  63. {'name': 'SetContentInspect', 'widget': const SetContentInspect()},
  64. if (kIsWeb || !(Platform.isAndroid || Platform.isIOS))
  65. {'name': 'SendMultiCameraStream', 'widget': const SendMultiCameraStream()},
  66. {'name': 'StartRhythmPlayer', 'widget': const StartRhythmPlayer()},
  67. {
  68. 'name': 'StartLocalVideoTranscoder',
  69. 'widget': const StartLocalVideoTranscoder()
  70. },
  71. {'name': 'ProcessVideoRawData', 'widget': const ProcessVideoRawData()},
  72. {'name': 'ProcessAudioRawData', 'widget': const ProcessAudioRawData()},
  73. {'name': 'AudioSpectrum', 'widget': const AudioSpectrum()},
  74. {'name': 'MediaRecorder', 'widget': const MediaRecorderExample()},
  75. {'name': 'PushVideoFrame', 'widget': const PushVideoFrame()},
  76. // {'name': 'PushAudioFrame', 'widget': const PushAudioFrame()},
  77. {'name': 'PushEncodedVideoFrame', 'widget': const PushEncodedVideoFrame()},
  78. {
  79. 'name': 'SpatialAudioWithMediaPlayer',
  80. 'widget': const SpatialAudioWithMediaPlayer()
  81. },
  82. if (kIsWeb || !(Platform.isAndroid || Platform.isIOS))
  83. {'name': 'PreCallTest', 'widget': const PreCallTest()},
  84. if (Platform.isAndroid || Platform.isIOS)
  85. {'name': 'MusicPlayer', 'widget': const MusicPlayerExample()},
  86. ];