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

Basic Jason integration with flutter_webrtc library #10

Merged
merged 60 commits into from
Nov 10, 2021

Conversation

evdokimovs
Copy link
Contributor

@evdokimovs evdokimovs commented Oct 14, 2021

Synopsis

Это PR из цикла задач по интеграции Jason'а в Flutter Android. В рамках этой задачи, были добавлены базовое взаимодействие Jason'а с flutter_webrtc.

Checklist

  • Created PR:
    • In draft mode
    • Name contains Draft: prefix
    • Name contains issue reference
    • Has k:: labels applied
    • Has assignee
  • Documentation is updated (if required)
  • Tests are updated (if required)
  • Changes conform code style
  • CHANGELOG entry is added (if required)
  • FCM (final commit message) is posted
    • and approved
  • Review is completed and changes are approved
  • Before merge:
    • Milestone is set
    • PR's name and description are correct and up-to-date
    • Draft: prefix is removed
    • All temporary labels are removed

@evdokimovs evdokimovs added feature New feature or request k::api Related to API (application interface) k::refactor Refactoring, technical debt elimination and other improvements of existing code base platform::android Specific to Android platform platform::ios Specific to iOS platform labels Oct 14, 2021
@evdokimovs evdokimovs self-assigned this Oct 14, 2021
# Conflicts:
#	flutter/lib/src/native/ffi/box_handle.dart
#	flutter/lib/src/native/ffi/callback.dart
#	flutter/lib/src/native/ffi/future.dart
#	flutter/lib/src/native/ffi/native_string.dart
#	flutter/lib/src/native/platform/functions_registerer.dart
#	flutter/lib/src/native/platform/object.dart
#	src/api/dart/mod.rs
#	src/api/dart/utils/string.rs
#	src/platform/dart/utils/callback.rs
#	src/platform/dart/utils/dart_future.rs
#	src/platform/dart/utils/handle.rs
#	src/platform/dart/utils/mod.rs
@evdokimovs
Copy link
Contributor Author

evdokimovs commented Oct 26, 2021

FCM

Basic Jason integration with `flutter_webrtc` library (#10)

- add bindings for `PeerConnection`, `MediaStreamTrack`, `IceCandidate` and `Transceiver`
- add ability to return `ForeignValue` from Dart without memory leaking
- add support for Dart callbacks with two arguments
- adapt internal Jason implementations for working with async `flutter_webrtc` methods

Additionally:
- use `instrumentisto/flutter-webrtc` fork instead of upstream

@evdokimovs evdokimovs marked this pull request as ready for review October 26, 2021 11:39
@evdokimovs evdokimovs requested a review from alexlapa October 26, 2021 11:45
Copy link
Contributor

@alexlapa alexlapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evdokimovs ,

Discussed, added todos.

@evdokimovs evdokimovs requested a review from alexlapa November 8, 2021 16:01
Copy link
Contributor

@alexlapa alexlapa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evdokimovs ,

LGTM, передавайте tyranron'у как CI'ка докрутиться.

@evdokimovs
Copy link
Contributor Author

evdokimovs commented Nov 9, 2021

@alexlapa , @tyranron ,

Откуда вытекает проблема с wasm-pack'ом до конца не ясно. Но проблема не на нашей стороне, поскольку тоже самое происходит при попытке билда пустой библиотеки в Docker'е. Можно посмотреть в репозитории evdokimovs/wasm-pack-segfault.

Также, закинул issue в wasm-pack: rustwasm/wasm-pack#1079

@evdokimovs evdokimovs requested a review from tyranron November 9, 2021 14:50
@evdokimovs evdokimovs changed the title Draft: Basic flutter_webrtc integration Basic Jason integration with flutter_webrtc library Nov 10, 2021
@evdokimovs evdokimovs merged commit 23ca7a5 into master Nov 10, 2021
@evdokimovs evdokimovs deleted the add-basic-dart-bindings branch November 10, 2021 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request k::api Related to API (application interface) k::refactor Refactoring, technical debt elimination and other improvements of existing code base platform::android Specific to Android platform platform::ios Specific to iOS platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants