296 Commits

Author SHA1 Message Date
Hiroshi Horie 64f0d76536 format 2021-10-21 01:44:44 +09:00
Hiroshi Horie 6ff0bde0f2 fix default options not passed to room 2021-10-21 01:30:09 +09:00
Hiroshi Horie 666380d39b clean up 2021-10-20 21:16:13 +09:00
Hiroshi Horie 4d62487f0f pass checks 2021-10-20 05:15:42 +09:00
Hiroshi Horie a43e74ed70 fix android hardware encoder issue 2021-10-20 05:09:50 +09:00
Hiroshi Horie 31bb32f405 change defaults to support voice isolation 2021-10-03 23:05:38 +09:00
Hiroshi Horie ec4909d68b fix analyzer warning 2021-10-02 15:36:34 +09:00
Hiroshi Horie 48e03b84cb Create android & web plugins (#15)
* create android & web plugins

* apply `flutter format .`
2021-10-02 15:20:41 +09:00
David Zhao 9518a2f123 pass SDK and version number to server, v0.5.0 (#14)
* pass SDK and version number to server, v0.5.0

* missing files and formatting

* make format

* line length comment for VSCode
2021-10-01 13:35:32 -07:00
Hiroshi Horie b67c807fd5 Organize events (#13)
* move internal events & remove unused events

* `TrackUnpublishedEvent` for local tracks

* update example since we have local track unpublish events

* use flutter_webrtc 0.6.9
2021-10-01 16:56:36 +09:00
Hiroshi Horie 84618cf56f Fix compile iOS issue (#12)
* fix ios compile
2021-10-01 03:57:16 +09:00
Hiroshi Horie 001f688729 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
2021-10-01 02:47:18 +09:00
David Zhao ec17907cdc remove RoomEvent from SpeakingChangedEvent, participant-only 2021-09-30 00:29:51 -07:00
David Zhao 9dd4af5e6c fix unknown signal message logging to not crash 2021-09-28 17:34:58 -07:00
Hiroshi Horie 4960459c07 Explicit type for listeners (#11) 2021-09-28 15:31:54 +09:00
Hiroshi Horie 6445b8d2a8 Switch to new event system (#9)
* `SignalEvents` and `synchronized` mode for `EventsListenable`

* cascade syntax

* clean up

* `RoomEvents`

* `ParticipantEvents`

* all events implemented

* make it compile with M1 macs

* dispose logic

* cleaner connect logic

* ask to publish

* fix initial EngineTrackAddedEvent glitch

* fix unpublishTrack bug

* clean up

* better events docs

* organize event types

* clean up

* cleaner wait logic

* wait for event instead of using Completer

* notifyListeners
2021-09-24 23:37:26 +09:00
Hiroshi Horie f4bd82a919 Subscriber as primary (#8)
* Update protos

* Signal client

* Improve transport

* First implementation

* Fix publish

* Update `PCTransport` for debounce negotiation

* debounce func

* reconnect & events

* Update debounce func

* engine events

* make sure events don't emit after dispose

* prefix flutter_webrtc

* Cleaner `iceServers` update

* don't mutate user provided params

* fix tests

* event manager

* Fix: `Room.onDisconnected` gets fired multiple times

* data publish in example

* cleaner logic

* safer events

* un-prefix with LK

* organize imports

* Clean up

* remove `Tuple`

* `EventsEmitter` can now be directly listened to

`EventsEmitter` extends `EventsListenable`
2021-09-18 00:10:16 +09:00
Hiroshi Horie 50f56c5e1e Simulcast, Screen sharing & Various improvements (#4)
* Respect `RTCIceTransportPolicy` enum and organize

* Simplify syntax where possible etc.

* Combine `VideoPreset` and `VideoPresets`

* Default values for `ConnectOptions`

* Build URI instead of String manipulation

* Slight modifications to Exception

* `LiveKitTheme` for example

* `VideoEncoding` class

* Organize imports

* First simulcast implementation

* Remove unnecessary try-catches

* Update Android settings

* Remember uri and token

* example improvements

* `fit` parameter for VideoTrackRenderer

* Simulcast option for example

* Pass `defaultPublishOptions`

* Show only `VideoQuality`

* Pass tests

* Better buildUri logic

* Named parameter to positional

* Explicit imports

* `VideoParameter` instead of `VideoPreset`

* Use `mediaTrack.getSettings` when possible

* Safer dispose logic

* Safer `PCTransport`

Update transport.dart

* Synchronized events for `SignalClient`

* Use logger instead of print

* Make example compile for iOS

* First screen share implementation

* Make example work with screen share

* Example improvement

* Code optimization

* Don't depend on web_socket_channel

* Fix: Unpublish track bug

* Show participant mute state & identity

* Update protos

* Remote mute/unmute

* iOS Background mode

* Separate `createCameraTrack` and `createScreenTrack`

* Clean up

* PB fix

* format

* Fix analyzer warning

* Android clean up

* Update README.md

* Clean up
2021-09-11 03:14:14 +09:00
David Zhao 5c82ee224b version bump 0.4.0 2021-08-31 09:29:53 -07:00
Hiroshi Horie ab31ddabb9 Apply Flutter best practices [Non-Breaking] (#2)
* Add flutter_lints package

* Use key in widget constructors

lint: use_key_in_widget_constructors

* Unnecessary new keyword

lint: unnecessary_new

* Prefer const with constant constructors

* Exclude protobuf files from analyzer

* Private field could be final

* Annotate overridden members

* Use initializing formals when possible

* Don't access members with `this` unless avoiding shadowing

* Prefer is! operator

* Use isEmpty instead of length

* Use collection literals when possible

* Revert comment changes

* Cleaner null testing

* Misc fixes

* Avoid using `forEach` with a function literal

* Prefer `final` over `var` where applicable

* Enforce stricter type-checking

* Ignore VS Code files

* Flutter format

* Prefer using lowerCamelCase for constant names

* flutter format -l 100

* Disable `avoid_print` for examples

* Slight improvements to example

Should solve lint error: no_logic_in_create_state
2021-08-31 16:35:07 +09:00
David Zhao ef00eda3b7 missing files 2021-08-30 15:32:12 -07:00
David Zhao d011bc7d3d Documentation 2021-08-30 15:31:12 -07:00
David Zhao d40d1bb547 avoid disposing attached media stream 2021-08-27 15:37:44 -07:00
David Zhao 3a26044399 manually handle audio tracks for web 2021-08-26 22:58:04 -07:00
David Zhao 82322be783 fix bug preventing publishing for web (thanks @HiroshiHorie) 2021-08-11 12:16:20 -07:00
David Zhao 356bda0f09 v0.3.0 2021-08-06 21:26:55 -07:00
David Zhao 509a037936 feature: switch between front and back cameras 2021-08-06 21:20:21 -07:00
David Zhao f1a7591ec7 v0.2.0 2021-08-05 23:23:37 -07:00
David Zhao 908c830b86 return connection error message, removed mediastream during publishing 2021-08-05 23:20:20 -07:00
David Zhao 101849d0bb use arraybuffer to ensure web compatibility 2021-08-05 13:04:44 -07:00
David Zhao 1ca8b3fa0c fix analyze warnings 2021-08-04 23:21:54 -07:00
David Zhao 0edcc3a714 CI for build 2021-08-04 23:09:15 -07:00
David Zhao 8cd7546d2f minor tweaks & cleanup 2021-08-04 22:52:16 -07:00
David Zhao 86fc303e61 updated proto, publishing details 2021-08-04 11:45:11 -07:00
David Zhao 593890331e connectivity handling, audio publishing 2021-08-04 10:59:41 -07:00
David Zhao aec2003140 video rendering, local track creation 2021-08-03 10:25:00 -07:00
David Zhao d193b9fb7f Participant ChangeNotifier 2021-07-25 22:22:11 -07:00
David Zhao a47c50c3c1 Room to extend ChangeNotifier 2021-07-25 00:05:48 -07:00
David Zhao 0bd2679e94 signal & webrtc connections established 2021-07-23 23:56:06 -07:00
David Zhao 26981c1c8c added LICENSE 2021-07-23 16:45:00 -07:00
David Zhao 57c2ea91e5 Room implementation, library exports 2021-07-23 16:11:38 -07:00
David Zhao b18c37fd1a implemented tracks, local & remote participants 2021-07-21 23:30:24 -07:00
David Zhao 0a682f7831 checkpoint - participant & tracks initial stubs 2021-07-20 23:08:37 -07:00
David Zhao 10ab3cdcac implement RTCEngine.negotiate 2021-07-20 15:45:10 -07:00
David Zhao b28466842f RTCEngine and SignalClient 2021-07-20 15:38:30 -07:00
David Zhao 941bbbdc32 initial commit, with generated protobufs 2021-07-16 15:29:06 -07:00