Commit Graph
101 Commits
Author SHA1 Message Date
cloudwebrtc dc1d8fbb44 fix: Fix wrong override when options is not null when LocalTrack.create. 2023-06-21 11:05:28 +08:00
CloudWebRTCandGitHub 2844648136 feat: add preferCurrentTab support for flutter web. (#305) 2023-06-16 20:10:09 +08:00
CloudWebRTCandGitHub 04781729fc Fix/track not stop stats monitor correctly (#306)
* feat: add preferCurrentTab support for flutter web.

* fix: Stop Stats monitor correctly when Track.onDispose.
2023-06-16 20:09:46 +08:00
CloudWebRTCandGitHub 193f89806f fix: add name to AudioPublishOptions. (#302)
* fix: add name to AudioPublishOptions.

* remove name for Track.

* remove name for Track.

* update.

* fix flutter analyzer.

* update.

* add Deprecated declaration for Track.name.

* update.
2023-06-14 15:31:21 +08:00
CloudWebRTCandGitHub 4a6694cc3b fix facingMode for mobile web. (#303) 2023-06-14 13:30:42 +08:00
cloudwebrtc a41aab8d03 fix: Fix ScreenShareCaptureOptions not passed correctly. 2023-06-12 13:28:34 +08:00
CloudWebRTCandGitHub 272484ce7e feat: Stats monitor for Track. (#290)
* feat: Stats monitor for Track.

* fix analyze.

* fix.

* import sorter.

* add monitor layer for example.

* update.

* update.

* fix import sorter.

* update.

* import sorter.

* fix typo for filename.

* revert changes for VideoPublishOptions.videoCodec.

* chore: improve code.

* update.
2023-06-01 16:15:37 +08:00
CloudWebRTCandGitHub e12dd60f5f update CI. (#287)
* update.

* update.

* pub update.

* fix import_sorter.

* fix analyze.
2023-05-17 13:44:28 +08:00
CloudWebRTCandGitHub 0b8aeeeba1 fix: audio play bug for ios safari. (#285)
* fix: audio play bug for ios safari. (WIP).

* chore: Repair and can pop up the playback prompt dialog box correctly.

* chore: add AudioContext to reduce playback delay.
2023-05-16 10:28:09 +08:00
CloudWebRTCandGitHub bf07a91c98 fix: Do not operate on inactive tracks. (#277) 2023-05-09 07:22:29 +08:00
26947e96d6 e2ee. (#226)
* chore: e2ee.

* update.

* update.

* update.

* update.

* chore: Use feat/frame-encryption branch of flutter-webrtc.

* chore: Add E2EEKEY defines for dart environment, and e2ee switch.

* Add encodedInsertableStreams to RTCConfiguration.

* update.

* feat: Add e2ee indicator for Participant.

* feat: add e2ee worker js for flutter web.

* dart format.

* remove unused file.

* fix flutter analyze .

* update.

* update.

* add: indicate for decryption failure, and string key.

* remove .lock files.

* update.

* update.

* update e2ee.worker for web.

* feat: support setCodecPreferences.

* state TrackE2EEStateEvent.

* fix wrong import interface from dart_webrtc.

* update.

* update.

* update.

* update.

* update pubspec.lock.

* chore: update protocol and add EncryptionType for Participant.

* Update lib/src/e2ee/options.dart

Co-authored-by: Théo Monnom <[email protected]>

* fix typo.

* revert changes for internal import.

* Add _cleanUp() for previous room.

* Add e2ee supports detection method for native/web.

* Remove redundant overriding methods.

* dart format.

* Add e2ee.worker code and deployment docs.

* chore: remove duplicate words.

* chore: using Pbkdf2 derive the key.

* Update pubspec.yaml

* fix e2ee for safari.

* fix key length.

* update e2ee.worker.dart.js.

* fix.

* update proto.

* update.

* chore: add simulate for rachetKey.

* update.

* chore: key ratchet for flutter web.

* update.

* update.

* update.

* chore: key ratchet export for web.

* bump version for xframeworks.

* update.

* chore: some changes for key safety ratcheting.

* update.

* fix typo.

* update.

* rename.

* magic bytes for web.

* bump version for flutter-webrtc.

* fix analyzer.

---------

Co-authored-by: Théo Monnom <[email protected]>
2023-04-27 17:54:32 +08:00
CloudWebRTCandGitHub 3407221fc4 Fix resolution/framerate/bitrate issue for publishVideoTrack (#270)
* Add screenShareCaptureOptions for setScreenShareEnabled.

* update.

* bump version for flutter-webrtc.

* chore: add maintainResolution setting for publish screen sharing track.

* chore: add CaptureOptions for setCameraEnabled/setMicrophoneEnabled/setScreenShareEnabled.

* update.

* revert changes for videoRids.

* chore: set the default sending bitrate.
2023-04-27 10:14:03 +08:00
CloudWebRTCandGitHub db2e25d424 feat: web/native device consistency management (#243)
* fix: Force audio settings to be consistent.

* chore: applyAudioSettings for onUnpublish.

* revert audio output select for web.

* add RoomHardwareManagementMethods to Room.

* update.

* fix analyze.

* update.

* update.

* chore: Reset sinkId for web when remoteTrack replays.

* rename setAudioOutput to setSinkId for flutter web.

* chore: Make sure AudioElement has `setSinkId` method.
2023-03-07 17:54:06 +08:00
CloudWebRTCandGitHub 70e6589981 feat: audio output select for web. (#247)
* feat: audio output select for web.

* chore: Add comments for VideoTrackRenderer.

* update.
2023-03-06 10:53:45 +08:00
CloudWebRTCandGitHub 5c4761bc7c Fix: re-publish tracks after re connect (#238)
* fix republish local tracks after reconnect.

* update flutter-webrtc.

* remove unused import.

* add dart_webrtc.

* cleanup.

* fix: Fix sendSyncState timing error, when reconnecting is sending.

* Adjust the re-connect logic to ensure that the publisher negotiates and reconnects correctly.

* Update room.dart
2023-02-17 09:04:56 +08:00
CloudWebRTCandGitHub 5018f355f8 feat: support fast switch camera for LocalVideoTrack. (#239)
* feat: support fast switch camera for LocalVideoTrack.

* remove unused import.
2023-02-15 09:59:31 +08:00
a23eb6332c Audio mute unmute fixes (#234)
* progress

* refresh

* Create Podfile.lock

* Update Podfile.lock

* pub

* update deps.

* fix tests

* dart format .

* fix duplicate imports

---------

Co-authored-by: cloudwebrtc <[email protected]>
2023-02-06 12:43:27 +09:00
CloudWebRTCandGitHub 27ea869443 fix: stop audio track on mute. (#207)
* fix: stop audio track on mute.

* chore: Let audioBitrate preset to music.

* update.

* update depends.

* update.
2022-11-14 19:13:48 +08:00
Jörn DepenbrockandGitHub a8ba441800 - do not set mandatory & optional parameters, when used in web (#164)
- web is not allowing it
- adjusted logic to use deviceId over optional parameters in web
2022-09-07 16:22:40 +08:00
CloudWebRTCandGitHub 044606223e Expose RTPReceiver for getting track statistics. (#162) 2022-09-07 15:15:32 +08:00
CloudWebRTCandGitHub cbdfa634a3 feat: Support for capturing audio for chrome tab. (#158)
* feat: Support for capturing audio for chrome tab.

* Update code comments.
2022-09-07 15:15:11 +08:00
CloudWebRTCandGitHub 1d621501f7 Add hardware api for camera, audio input/output selection. (#147)
* chore: Add hardware api for device settings dialog, camera preview, audio input/output selection.

* update.

* update flutter-webrtc.

* chore: add popupmenu for audio/video selection.

* chore: Improve menu tooltip text.

* Removed hardware settings dialog, added it to experimental branch.

* remove unused code.

* Respond to device changes.

* fixed `flutter analyze`.

* update.

* bump verion to v1.1.1.
2022-08-24 12:41:11 +08:00
davidliuandGitHub 46fe1cd7cd iOS Broadcast Extension instructions (#144) 2022-08-08 23:16:13 +09:00
CloudWebRTCandGitHub a554d92543 screen sharing for desktop. (#135)
* screen sharing for desktop (WIP).

* use git repo for testing.

* update.

* Add sourceId/frameRate to ScreenShareCaptureOptions.

* Compatible with flutter web.

* Rendering of camera and screenshare video tracks at same time.

* Remote screen sharing is shown first, and fixed sub/unsub button for screenshare widget.

* resolved conflict.

* modify flutter-webrtc to pub version.

* remove unused import.

* chore: Common params for Camera and ScreenShare.
2022-08-02 11:17:09 +08:00
davidliuandGitHub 531cbd1676 iOS screen share (#133) 2022-07-10 22:43:20 +09:00
Hiroshi HorieandGitHub ff65370cbc Automatic mirrorMode for VideoView (#119)
* update protos

* impl 1

* re-compute when options update

* minor fix
2022-05-17 10:51:38 +09:00
Hiroshi HorieandGitHub 84b9ef130f Change AudioSession configuration logic (#104)
* impl

* ref

* ref
2022-04-08 01:58:49 +09:00
Hiroshi Horie d1a772e648 fix 2022-04-07 13:21:12 +09:00
davidliuandGitHub e7333174b5 Fix device id not working for web (#91)
* update gradle

* Use either sourceId or deviceId as needed

Web does not allow for mixing optional constraints with modern constraints
2022-03-12 02:26:09 +09:00
davidliuandGitHub 288bd99dca add ability to select capture device ids (#89)
* add ability to select capture device ids

* format fix
2022-03-10 00:08:21 +09:00
Hiroshi HorieandGitHub 7c16d2f3ec Update param computation (#87)
* import sorter config

* organize video types

* ignore import sort for proto files

* equality for video types

* impl

* adjust defaults

* max
2022-03-01 10:45:24 +09:00
Hiroshi Horie 0a339b6252 organize video types 2022-02-25 15:45:46 +09:00
Hiroshi Horie 8b4f754059 fix presets 2022-02-22 10:36:43 +07:00
Hiroshi HorieandGitHub 2366eb9f7c update presets (#85) 2022-02-22 03:13:09 +07:00
Hiroshi HorieandGitHub 56aeacc291 Capture client info (#71) 2022-01-18 16:16:05 +07:00
Hiroshi HorieandGitHub 38328c5e0d Fix: Visibility Optimization randomly not working (#65)
* use widget id instead of state id

* ignore local video view events

* switch remote view visibility also

* use Key for a reliable id

* remove local check

* clean up

* redesign

* check mounted

* remove mount check

* more optimization

* quick wake up

* mark internal

* rename to adaptiveStream
2022-01-01 12:59:24 +07:00
Hiroshi Horie 1ed757aca0 organize dirs 2021-12-21 17:57:18 +07:00
Hiroshi HorieandGitHub f458f052a5 Fix: RemoteTrack's initial mute state (#59) 2021-12-17 12:26:33 +07:00
Hiroshi Horie b24fad0f3b better platform check 2021-12-15 18:44:01 +07:00
Hiroshi Horie 3d5e8a7dd8 update presets 2021-12-14 13:47:29 +07:00
Hiroshi Horie 4e83609819 screen share presets 2021-12-14 00:55:47 +07:00
Hiroshi Horie a82c5a7a50 VideoDimensions instead of width height 2021-12-13 21:49:42 +07:00
Hiroshi HorieandGitHub b6494a8ede Default capture options (#51)
* default capture options

* separate camera & screen share capture options
2021-12-13 02:21:46 +07:00
Hiroshi Horie b91c822fba more docs 2021-12-12 19:09:38 +07:00
Hiroshi Horie 8041f45def option docs 2021-12-12 18:32:34 +07:00
Hiroshi HorieandGitHub b85ecc1588 Fix: mute Remote mute/unmute events (#54)
* fix

* format
2021-12-12 14:01:58 +07:00
Hiroshi Horie 2b88ffd5f9 better logging for mute 2021-12-11 18:26:58 +07:00
Hiroshi Horie 7e1164a74c fix imports 2021-12-10 23:14:21 +07:00
Hiroshi Horie 7a8f03963e fix imports 2021-12-10 00:27:43 +07:00
Hiroshi Horie a706a5e1fb organize ConnectOptions RoomOptions RTCConfiguration 2021-12-10 00:23:45 +07:00