Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement onDeviceChange method #26

Merged
merged 147 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
517307d
test
logist322 Nov 3, 2021
c0e23b5
Add base toolchaine set up
logist322 Nov 3, 2021
8a9a0d8
Finish toolchain
logist322 Nov 5, 2021
bd85d9f
corrections
alexlapa Nov 5, 2021
dd0d0d1
no third_party
logist322 Nov 5, 2021
ba7f433
Add new archiver, start implementing rust make scripts
logist322 Nov 5, 2021
1a6e424
Add rust tests
logist322 Nov 8, 2021
54c0c32
Fix workflow
logist322 Nov 8, 2021
36970e1
Fix workflow again
logist322 Nov 8, 2021
8439628
Add makefile to CI
logist322 Nov 8, 2021
1984c57
Add ubuntu to CI
logist322 Nov 8, 2021
af89f74
Add needs
logist322 Nov 8, 2021
27b9759
Add CI make test
logist322 Nov 8, 2021
84cc04b
Rework test
logist322 Nov 8, 2021
6470c38
Fix test
logist322 Nov 8, 2021
c5dffb8
Fix CI
logist322 Nov 8, 2021
c6fb683
Fix CI again
logist322 Nov 8, 2021
21e807b
Fix checkout
logist322 Nov 8, 2021
668151c
New CI test
logist322 Nov 8, 2021
eafa578
Add all steps CI
logist322 Nov 8, 2021
7b754d0
Add correct CI
logist322 Nov 8, 2021
98ee67e
Fix correct CI
logist322 Nov 8, 2021
112a33a
Fix again correct CI
logist322 Nov 8, 2021
b352a9b
Fix last correct CI
logist322 Nov 8, 2021
8a1de24
Add docs
logist322 Nov 8, 2021
473bd32
Fix all troubles
logist322 Nov 8, 2021
062bed3
Fix paths
logist322 Nov 9, 2021
95cd934
add todos
alexlapa Nov 9, 2021
7f48cda
Add cpp files to windows
logist322 Nov 9, 2021
edf23d5
Remove all unused code
logist322 Nov 10, 2021
8901478
Resolve conflicts
logist322 Nov 10, 2021
e89a49b
Remove src/flutter_webrtc_base.cc
logist322 Nov 10, 2021
ccecac3
Fix test
logist322 Nov 10, 2021
5edc9f6
Raw audio device info
logist322 Nov 10, 2021
7ec8783
Try to implement video info
logist322 Nov 11, 2021
4a900af
Get all necessity info in cpp
logist322 Nov 12, 2021
9083ea1
Add little methods
logist322 Nov 15, 2021
a06028f
Add raw ptr
logist322 Nov 15, 2021
11200f6
Generate unique_ptr error WIP
logist322 Nov 16, 2021
c96f12d
Test custom class
logist322 Nov 16, 2021
e3d0607
Add audio and video sys functions
logist322 Nov 16, 2021
7d0b824
Add optional installing of libwebrtc-bin
logist322 Nov 18, 2021
35aec71
Implement getSources
logist322 Nov 18, 2021
f9764b1
Fix Makefile
logist322 Nov 19, 2021
e94ba2c
Rename cpp side with snake_case
logist322 Nov 19, 2021
d9cdd8d
Add basic documentation
logist322 Nov 19, 2021
b62b219
Remove DeviceInfoList struct
logist322 Nov 19, 2021
feef018
Improve documentation
logist322 Nov 19, 2021
624ce33
Add links in documentation
logist322 Nov 19, 2021
9b4ec41
Add RefCounted
logist322 Nov 19, 2021
0a2b1e6
Resolve conflicts
logist322 Nov 19, 2021
695805d
Rework video module with unique pointers
logist322 Nov 19, 2021
1bb992c
Change crlf for lf in Makefile
logist322 Nov 19, 2021
b654a5c
Fix documentation
logist322 Nov 19, 2021
7a6b23f
Test video capture WIP
logist322 Nov 23, 2021
6deb826
Add actual class
logist322 Nov 26, 2021
d82e236
New flutter menu test item
logist322 Nov 29, 2021
7ae5b71
Load webrtc state to flutter WIP
logist322 Dec 2, 2021
a76bb91
Inject rust to platformchannel
logist322 Dec 3, 2021
013ba6f
Implement all basic functionality getUserMedia/disposeStream
logist322 Dec 6, 2021
b71eb6c
Encapsulate logic in rust
logist322 Dec 6, 2021
464507b
Add documentation
logist322 Dec 7, 2021
d268214
Remove unused features from "momo`s" code
logist322 Dec 7, 2021
cc46868
Prepare for review
logist322 Dec 7, 2021
fb462dc
Change Ubuntu to Windows in CI
logist322 Dec 8, 2021
745c739
Fix CI
logist322 Dec 8, 2021
4939b5b
Clean test
logist322 Dec 8, 2021
41ab00e
Fix fmt
logist322 Dec 8, 2021
c2bf7e8
corrections [skip ci]
alexlapa Dec 22, 2021
eb1e1d5
Refactor WIP
logist322 Dec 24, 2021
5b713ad
Refactor sys and native crates
logist322 Dec 27, 2021
181a5be
Refactor C++ side
logist322 Dec 27, 2021
f1062be
Add documentation
logist322 Dec 27, 2021
0d8072b
Merge WIP
logist322 Dec 27, 2021
1d32581
End merging, add some docs
logist322 Dec 28, 2021
9076834
Fix CI
logist322 Dec 28, 2021
2da3415
Fix CI
logist322 Dec 28, 2021
d36474b
Return .editorconfig
logist322 Dec 28, 2021
2e1e98c
corrections
alexlapa Dec 29, 2021
df08153
corrections
alexlapa Dec 22, 2021
685f37a
corrections [skip ci]
alexlapa Dec 29, 2021
1ac3537
corrections [skip ci]
alexlapa Dec 29, 2021
f05accb
corrections [skip ci]
alexlapa Dec 22, 2021
d3a64d6
corrections [skip ci]
alexlapa Dec 29, 2021
b6a0a67
corrections [skip ci]
alexlapa Dec 23, 2021
12348f5
corrections [skip ci]
alexlapa Dec 30, 2021
cecc96d
corrections
alexlapa Dec 30, 2021
4f0a033
Begin refactoring WIP
logist322 Dec 30, 2021
b7ac102
Separate ADM and VDI to Webrtc state, implement label for stream and …
logist322 Jan 3, 2022
0adeadf
Implement labels for audio track
logist322 Jan 4, 2022
0439112
Add audio sorces manager
logist322 Jan 4, 2022
8a2ba8a
Add device_id to audio source
logist322 Jan 4, 2022
0bda775
Reuse video/audio sources
logist322 Jan 4, 2022
13e42ab
Separate creating video source
logist322 Jan 4, 2022
d468009
Separate bridge
logist322 Jan 4, 2022
907185f
Add documentation
logist322 Jan 4, 2022
c96fff4
Fix clippy
logist322 Jan 5, 2022
73a65c8
corrections
alexlapa Jan 5, 2022
b8d3f53
corrections
alexlapa Jan 6, 2022
ca81327
corrections
alexlapa Jan 7, 2022
576a353
corrections
alexlapa Jan 7, 2022
473de55
corrections [skip ci]
alexlapa Jan 7, 2022
53606e0
WIP
logist322 Jan 10, 2022
1f712c6
Move some functions to media_stream.cc
logist322 Jan 10, 2022
779ef26
Edit .editorconfig
logist322 Jan 10, 2022
f6f0d8d
Implement SetRecordingDevice()
logist322 Jan 12, 2022
742640e
revert format
alexlapa Jan 12, 2022
c3c4df4
corrections
alexlapa Jan 12, 2022
a91bc4e
Done
logist322 Jan 12, 2022
67edde5
Add docs
logist322 Jan 12, 2022
4eaa0fc
WIP
logist322 Jan 13, 2022
9df539e
WIP
logist322 Jan 13, 2022
bfb31fb
System notifier
logist322 Jan 18, 2022
5c52f61
Ad system notifier at Rust
logist322 Jan 19, 2022
9a2aad8
Raw system notifier machine
logist322 Jan 20, 2022
778fc35
WIP
logist322 Jan 20, 2022
9f16ff5
Refactor Rust side
logist322 Jan 20, 2022
1a1e4b9
Done
logist322 Jan 20, 2022
8ea9cc4
Remove unused code
logist322 Jan 20, 2022
e1a567b
Merge and fix CI
logist322 Jan 20, 2022
a082da5
Fix formatter
logist322 Jan 20, 2022
3449922
Remove unused widget
logist322 Jan 20, 2022
9f463b3
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 3, 2022
3941bb0
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 3, 2022
687c341
corrections
alexlapa Feb 3, 2022
6c467a2
WIP
logist322 Feb 8, 2022
97f6aa5
WIP
logist322 Feb 8, 2022
d2e1645
WIP
logist322 Feb 8, 2022
465f800
Work
logist322 Feb 8, 2022
5a46aac
Clean something
logist322 Feb 8, 2022
5d1dc77
Refactor Flutter C++
logist322 Feb 8, 2022
80ceabc
CI FIX
logist322 Feb 8, 2022
297333d
Merge windows-rework
logist322 Feb 8, 2022
f22a7f5
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 10, 2022
a18e5ea
bump deps
alexlapa Feb 10, 2022
256c762
up flutter to 2.10.1
alexlapa Feb 10, 2022
36a3eb3
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 11, 2022
709b2ab
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 28, 2022
a2cb2ba
corrections
alexlapa Feb 28, 2022
4f9a6b2
Merge branch 'windows-rework' into implement-on-device-change
alexlapa Feb 28, 2022
d0cbd25
corrections
alexlapa Feb 28, 2022
53a60ae
Refactor
logist322 Mar 1, 2022
ab487a7
corrections
alexlapa Mar 1, 2022
148469f
Refactor
logist322 Mar 1, 2022
4722a2a
corrections
alexlapa Mar 1, 2022
7fc7ed2
corrections
alexlapa Mar 1, 2022
f371adb
Corrections
tyranron Mar 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ linter:
- use_rethrow_when_possible
- valid_regexps
- void_checks

analyzer:
errors:
# treat missing required parameters as a warning (not a hint)
Expand Down
1 change: 1 addition & 0 deletions crates/native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ anyhow = "1.0"
cxx = "1.0"
derive_more = "0.99"
libwebrtc-sys = { path = "../libwebrtc-sys" }
winapi = { version = "0.3", features = ["winuser", "dbt"] }

[build-dependencies]
anyhow = "1.0"
Expand Down
13 changes: 9 additions & 4 deletions crates/native/include/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ class SetDescriptionCallbackInterface {
class OnFrameCallbackInterface {
public:
// Called when the underlying video engine produces a new video frame.
//
// The provided frame is a pointer to the `rust::Box<VideoFrame>`. Its
// ownership can be transferred back to the Rust side using the
// `rust::Box::from_raw()`.
virtual void OnFrame(VideoFrame) = 0;

virtual ~OnFrameCallbackInterface() = default;
Expand Down Expand Up @@ -113,3 +109,12 @@ class AddIceCandidateCallbackInterface {

virtual ~AddIceCandidateCallbackInterface() = default;
};

// Callback, called whenever a set of available media devices changes.
class OnDeviceChangeCallback {
public:
// Called whenever a set of available media devices changes.
virtual void OnDeviceChange() = 0;

virtual ~OnDeviceChangeCallback() = default;
};
140 changes: 0 additions & 140 deletions crates/native/src/device_info.rs

This file was deleted.

Loading