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

Add RemoteMediaTrack.onMediaDirectionChanged() (#42) #46

Merged
merged 31 commits into from
Apr 27, 2022

Conversation

evdokimovs
Copy link
Contributor

@evdokimovs evdokimovs commented Apr 13, 2022

Resolves #42

Synopsis

This PR adds RemoteMediaTrack.onMediaDirectionChanged callback which will be called when participant disables media sending or media receiving disabled locally. Based on this callback, user can determine on which sides RemoteMediaTrack is disabled.

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) labels Apr 13, 2022
@evdokimovs evdokimovs self-assigned this Apr 13, 2022
evdokimovs and others added 23 commits April 14, 2022 12:55
# Conflicts:
#	flutter/android/src/main/jniLibs/arm64-v8a/libmedea_jason.so
#	flutter/android/src/main/jniLibs/armeabi-v7a/libmedea_jason.so
#	flutter/android/src/main/jniLibs/x86/libmedea_jason.so
#	flutter/android/src/main/jniLibs/x86_64/libmedea_jason.so
#	flutter/assets/pkg/medea_jason.js
#	flutter/assets/pkg/medea_jason_bg.wasm
# Conflicts:
#	flutter/assets/pkg/medea_jason.js
#	flutter/assets/pkg/medea_jason_bg.wasm
#	flutter/example/pubspec.lock
#	flutter/lib/src/interface/remote_media_track.dart
#	flutter/lib/src/native/remote_media_track.dart
#	flutter/lib/src/web/remote_media_track.dart
@alexlapa alexlapa self-requested a review April 26, 2022 11:01
@alexlapa
Copy link
Contributor

FCM:

Add `RemoteMediaTrack.onMediaDirectionChanged()` callback (#46)

@alexlapa alexlapa marked this pull request as ready for review April 26, 2022 11:07
@@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: true

env:
MEDEA_BRANCH: edge # for E2E tests only
MEDEA_BRANCH: add-media-exchange-direction # for E2E tests only
Copy link
Contributor

@alexlapa alexlapa Apr 26, 2022

Choose a reason for hiding this comment

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

@tyranron ,

Это я в следующем PR'е ревертну, после слива соответсвующей задачи в instrumentisto/medea.

@alexlapa alexlapa requested a review from tyranron April 26, 2022 11:41
Copy link
Member

@tyranron tyranron left a comment

Choose a reason for hiding this comment

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

FCM

Add `RemoteMediaTrack.on_media_direction_changed()` callback (#46, #42)

- remove `RemoteMediaTrack.on_enabled()` and `RemoteMediaTrack.on_disabled()` callbacks
- refactor Client API proto to use `MediaDirection`

@tyranron tyranron merged commit 1220023 into master Apr 27, 2022
@tyranron tyranron deleted the add-media-exchange-direction branch April 27, 2022 08:47
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add RemoteMediaTrack.onTransceiverDirectionChange()
4 participants