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

Integration with flutter_webrtc #12

Merged
merged 100 commits into from
Dec 24, 2021
Merged

Conversation

evdokimovs
Copy link
Contributor

@evdokimovs evdokimovs commented Oct 29, 2021

Synopsis

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

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
    • flutter-webrtc dependency switched back to master branch

@evdokimovs
Copy link
Contributor Author

@alexlapa ,

Изменения по удалению Transceiver::is_stopped пришлось откатить, поскольку стейт Stopped еще не завезли в web_sys::TransceiverDirection.

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'у.

src/platform/dart/utils/map.rs Outdated Show resolved Hide resolved
src/platform/dart/media_devices.rs Show resolved Hide resolved
src/platform/dart/media_devices.rs Show resolved Hide resolved

/// Wrapper around [WebSocket] which stores WS messages if no one
/// currently listens to them and provides it to the first subscriber.
class BufferedWebSocket {
Copy link
Contributor

Choose a reason for hiding this comment

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

@evdokimovs ,

В смысле между созданием сокета и моментмо как раст на него подпишется успевают дойти сообщения?

Может сразу в connect прокидывать onMessage и onClose каллбеки?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexlapa ,

И правда перемудрил. В нашем случае это и правда более удачный вариант. Запушил эти изменения.

@alexlapa alexlapa self-requested a review December 23, 2021 10:37
@tyranron tyranron changed the title Draft: Integration with flutter_webrtc Integration with flutter_webrtc Dec 24, 2021
@evdokimovs evdokimovs merged commit 1e084b9 into master Dec 24, 2021
@evdokimovs evdokimovs deleted the flutter-webrtc-integration branch December 24, 2021 12:33
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::design Related to overall design and/or architecture 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.

None yet

3 participants