Skip to content

Commit

Permalink
release: 0.11.0 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
drymarau authored Dec 19, 2022
1 parent 93a52df commit ba54373
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 18 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.11.0] - 2022-12-15

### Added
- `WebRtcMediaConnectionFactory.Builder` to improve experience for both Java and Kotlin users
- `MediaConnection.setPresentationRemoteVideoTrackEnabled` that allows to configure whether the `MediaConnection` should be receiving remote presentation
- `MediaConnection.setMainRemoteAudioTrackEnabled`/`MediaConnection.setMainRemoteVideoTrackEnabled` to control whether the main remote audio/video should be enabled
- `MediaConnection.setMaxBitrate` that controls maximum bitrate for each video stream
- Several new properties on `RequestTokenResponse` and `Registration`
- Ability to retrieve registered devices via `Registration.getRegisteredDevices`

### Changed
- Kotlin to 1.7.20
- `EglBase` is now nullable
- Deprecate `WebRtcMediaConnectionFactory` constructor, please migrate to `Builder`
- **BREAKING**: `MediaConnection.setMainAudioTrack`/`MediaConnection.setMainVideoTrack` no longer enable remote audio/video by default. Please use `MediaConnection.setMainRemoteAudioTrackEnabled`/`MediaConnection.setMainRemoteVideoTrackEnabled` to enable them

### Fixed
- Microphone mute state not being restored after `LocalAudioTrack.dispose` call

## [0.10.0] - 2022-09-23

### Added
Expand Down Expand Up @@ -159,7 +178,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Initial release

[Unreleased]: https://github.com/pexip/pexip-android-sdk/compare/0.10.0...HEAD
[Unreleased]: https://github.com/pexip/pexip-android-sdk/compare/0.11.0...HEAD
[0.11.0]: https://github.com/pexip/pexip-android-sdk/releases/tag/0.11.0
[0.10.0]: https://github.com/pexip/pexip-android-sdk/releases/tag/0.10.0
[0.9.0]: https://github.com/pexip/pexip-android-sdk/releases/tag/0.9.0
[0.8.0]: https://github.com/pexip/pexip-android-sdk/releases/tag/0.8.0
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ And add modules that you need:
```kotlin
dependencies {
// A fluent wrapper for Infinity Client REST API
implementation("com.pexip.sdk:sdk-api-infinity:0.10.0")
implementation("com.pexip.sdk:sdk-api-infinity:0.11.0")
// A set of tools for interacting with an Infinity conference
implementation("com.pexip.sdk:sdk-conference-infinity:0.10.0")
implementation("com.pexip.sdk:sdk-conference-infinity:0.11.0")
// A set of tools for interacting with an Infinity registration
implementation("com.pexip.sdk:sdk-registration-infinity:0.10.0")
implementation("com.pexip.sdk:sdk-registration-infinity:0.11.0")
// A `MediaConnection` implementation build on top of WebRTC
implementation("com.pexip.sdk:sdk-media-webrtc:0.10.0")
implementation("com.pexip.sdk:sdk-media-webrtc:0.11.0")
// A set of extensions that add coroutines support for Infinity Client REST API
implementation("com.pexip.sdk:sdk-api-coroutines:0.10.0")
implementation("com.pexip.sdk:sdk-api-coroutines:0.11.0")
// A set of extensions that add coroutines support for Conference object
implementation("com.pexip.sdk:sdk-conference-coroutines:0.10.0")
implementation("com.pexip.sdk:sdk-conference-coroutines:0.11.0")
// A set of extensions that add coroutines support for Registration object
implementation("com.pexip.sdk:sdk-registration-coroutines:0.10.0")
implementation("com.pexip.sdk:sdk-registration-coroutines:0.11.0")
// A set of extensions that add coroutines support for MediaConnection object
implementation("com.pexip.sdk:sdk-media-coroutines:0.10.0")
implementation("com.pexip.sdk:sdk-media-coroutines:0.11.0")
// A composable that wraps SurfaceViewRenderer
implementation("com.pexip.sdk:sdk-media-webrtc-compose:0.10.0")
implementation("com.pexip.sdk:sdk-media-webrtc-compose:0.11.0")
}
```

Expand All @@ -58,7 +58,7 @@ dependencyResolutionManagement {
}
versionCatalogs {
register("pexipSdk") {
from("com.pexip.sdk:sdk-catalog:0.10.0")
from("com.pexip.sdk:sdk-catalog:0.11.0")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ class OnConferenceEvent(private val conferenceEvent: ConferenceEvent) : Conferen
if (conferenceEvent is PresentationStartConferenceEvent) {
state.connection.setPresentationVideoTrack(null)
state.screenCaptureVideoTrack?.dispose()
state.connection.startPresentationReceive()
state.connection.setPresentationRemoteVideoTrackEnabled(true)
} else if (conferenceEvent is PresentationStopConferenceEvent) {
state.connection.stopPresentationReceive()
state.connection.setPresentationRemoteVideoTrackEnabled(false)
}
state = state.copy(
presentation = presentation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ class ConferenceWorkflow @Inject constructor(
try {
renderState.connection.setMainVideoTrack(renderProps.cameraVideoTrack)
renderState.connection.setMainAudioTrack(renderProps.microphoneAudioTrack)
renderState.connection.setMainRemoteAudioTrackEnabled(true)
renderState.connection.setMainRemoteVideoTrackEnabled(true)
renderState.connection.start()
awaitCancellation()
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ object WebRtcMediaConnectionFactoryModule {

@Provides
@Singleton
fun Application.provideMediaConnectionFactory(eglBase: EglBase) = WebRtcMediaConnectionFactory(
context = this,
eglBase = eglBase
)
fun Application.provideMediaConnectionFactory(eglBase: EglBase) =
WebRtcMediaConnectionFactory.Builder(this)
.eglBase(eglBase)
.build()
}
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencyResolutionManagement {
}
versionCatalogs {
register("pexipSdk") {
from("com.pexip.sdk:sdk-catalog:0.10.0")
from("com.pexip.sdk:sdk-catalog:0.11.0")
}
}
}
Expand Down

0 comments on commit ba54373

Please sign in to comment.