Better audio management (#10)

* add audio_session package

* `AudioManager` initial design

* try to integrate audio manager

* configure audio session

* `DisposeAware`

disposing if already published causes exception.

* organize

* guard flutter_webrtc calls

* websocket async fix

* use `ConnectionState` instead of `_isClosed` and `isReconnecting`

* change create audio track defaults

* update protos

* protocol 3 speaker updates

* fix exception

* emit `RoomDisconnectedEvent` only once

* fix exception

* keep track of local / remote audio tracks

* explicit types

* manage track state

* re-structure audio management

* change defaults

* unpublish all

* use experimental build

* change defaults

* configuring is optional

* call native `RTCAudioSession.setConfiguration`

* defaults adjustment

* iOS only for now

* use lib 92.4515.07

* clean up

* revert audio options for now

* remove pod source

* rename apple related audio

* `createListener` method

* organize native audio

* `SpeakingChangedEvent` only on `Participant`

* refactoring

* fix ios compile

* fix configure audio only for iOS logic

* minor fix & clean up

* change dispose logic

* format protos

* fix unpublishTrack

* `createListener` into a mixin

* simplify

* use flutter_webrtc master

* unpublish for example

* update ios icon

* android icon

* web icon

* favicon
This commit is contained in:
Hiroshi Horie
2021-10-01 02:47:18 +09:00
committed by GitHub
parent ec17907cdc
commit 001f688729
101 changed files with 1658 additions and 681 deletions
+11 -18
View File
@@ -16,28 +16,21 @@ dependencies:
uuid: ^3.0.4
synchronized: ^3.0.0
protobuf: ^2.0.0
flutter_webrtc:
git:
url: https://github.com/livekit/flutter-webrtc
ref: use-custom-webrtc-build
# ^0.6.7
# path: ../../repos_livekit/flutter-webrtc/
flutter_webrtc:
# This will use custom webrtc build from
# https://github.com/webrtc-sdk/Specs/releases
# protobuf:
# git:
# url: https://github.com/google/protobuf.dart.git
# ref: master
# path: protobuf/
# WebSocketChannel has design flaws
# https://github.com/dart-lang/web_socket_channel/issues/25
# web_socket_channel: ^2.1.0
git:
url: https://github.com/flutter-webrtc/flutter-webrtc
ref: master
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.4
flutter:
plugin:
platforms:
ios:
pluginClass: LiveKitClientPlugin