Skip to content

Commit

Permalink
Merge pull request #1260 from 100mslive/develop
Browse files Browse the repository at this point in the history
Release 1.9.2: Develop to main
  • Loading branch information
ygit authored Nov 7, 2023
2 parents fa8be4c + e2d76c7 commit cea894d
Show file tree
Hide file tree
Showing 23 changed files with 243 additions and 290 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ concurrency:

on:
workflow_dispatch:
push:
branches:
- main
- develop
pull_request:
types:
- opened
Expand All @@ -33,17 +29,19 @@ jobs:
timeout-minutes: 30

permissions:
checks: write # For trunk to post annotations
checks: write
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-java@v3
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11.x
- uses: actions/checkout@v3

- name: Install dependencies
run: cd packages/react-native-room-kit/example/; npm install

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,12 @@ object HMSHelper {
if (data == null) {
return null
}

val builder = HMSAudioTrackSettings.Builder()
if (areAllRequiredKeysAvailable(data, arrayOf(Pair("useHardwareEchoCancellation", "Boolean")))
) {
val useHardwareEchoCancellation = data.getBoolean("useHardwareEchoCancellation")
builder.setUseHardwareAcousticEchoCanceler(useHardwareEchoCancellation)
} else {
builder.setUseHardwareAcousticEchoCanceler(false)
}

if (areAllRequiredKeysAvailable(data, arrayOf(Pair("initialState", "String")))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,6 @@ class HMSManager(reactContext: ReactApplicationContext) :
hms?.stopHLSStreaming(callback)
}

@ReactMethod
fun resetVolume(data: ReadableMap) {
val hms = HMSHelper.getHms(data, hmsCollection)

hms?.resetVolume()
}

@ReactMethod
fun changeName(
data: ReadableMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1558,26 +1558,6 @@ class HMSRNSDK(
)
}

fun resetVolume() {
val remotePeers = hmsSDK?.getRemotePeers()

if (remotePeers != null) {
for (peer in remotePeers) {
val playbackAllowed = peer.audioTrack?.isPlaybackAllowed
if (playbackAllowed !== null && playbackAllowed) {
peer.audioTrack?.setVolume(10.0)
}
val auxTracks = peer.auxiliaryTracks

for (track in auxTracks) {
if (track.type === HMSTrackType.AUDIO) {
(track as? HMSRemoteAudioTrack)?.setVolume(10.0)
}
}
}
}
}

fun changeName(
data: ReadableMap,
callback: Promise?,
Expand Down
14 changes: 7 additions & 7 deletions packages/react-native-hms/example/android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.842.0)
aws-sdk-core (3.185.1)
aws-partitions (1.845.0)
aws-sdk-core (3.186.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -122,19 +122,19 @@ GEM
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.19.0)
google-apis-core (>= 0.9.0, < 2.a)
google-apis-storage_v1 (0.29.0)
google-apis-core (>= 0.11.0, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.44.0)
google-cloud-storage (1.45.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.19.0)
google-apis-storage_v1 (~> 0.29.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
Expand All @@ -161,7 +161,7 @@ GEM
os (1.1.4)
plist (3.7.0)
public_suffix (5.0.3)
rake (13.0.6)
rake (13.1.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
Expand Down
14 changes: 7 additions & 7 deletions packages/react-native-hms/example/ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.842.0)
aws-sdk-core (3.185.1)
aws-partitions (1.845.0)
aws-sdk-core (3.186.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -122,19 +122,19 @@ GEM
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.19.0)
google-apis-core (>= 0.9.0, < 2.a)
google-apis-storage_v1 (0.29.0)
google-apis-core (>= 0.11.0, < 2.a)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.44.0)
google-cloud-storage (1.45.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.19.0)
google-apis-storage_v1 (~> 0.29.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
Expand All @@ -161,7 +161,7 @@ GEM
os (1.1.4)
plist (3.7.0)
public_suffix (5.0.3)
rake (13.0.6)
rake (13.1.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
Expand Down
14 changes: 7 additions & 7 deletions packages/react-native-hms/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PODS:
- HMSBroadcastExtensionSDK (0.0.9)
- HMSHLSPlayerSDK (0.0.2):
- HMSAnalyticsSDK (= 0.0.2)
- HMSSDK (1.1.0):
- HMSSDK (1.2.0):
- HMSAnalyticsSDK (= 0.0.2)
- HMSWebRTC (= 1.0.5116)
- HMSWebRTC (1.0.5116)
Expand Down Expand Up @@ -292,10 +292,10 @@ PODS:
- React-Core
- react-native-document-picker (8.2.1):
- React-Core
- react-native-hms (1.9.1):
- react-native-hms (1.9.2):
- HMSBroadcastExtensionSDK (= 0.0.9)
- HMSHLSPlayerSDK (= 0.0.2)
- HMSSDK (= 1.1.0)
- HMSSDK (= 1.2.0)
- React-Core
- react-native-safe-area-context (3.4.1):
- React-Core
Expand Down Expand Up @@ -368,7 +368,7 @@ PODS:
- React-perflogger (= 0.64.4)
- rn-fetch-blob (0.12.0):
- React-Core
- RNCAsyncStorage (1.19.3):
- RNCAsyncStorage (1.19.4):
- React-Core
- RNDeviceInfo (9.0.2):
- React-Core
Expand Down Expand Up @@ -629,7 +629,7 @@ SPEC CHECKSUMS:
HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7
HMSBroadcastExtensionSDK: d80fe325f6c928bd8e5176290b5a4b7ae15d6fbb
HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3
HMSSDK: 49e3ac665ceb8904d41787ddf99742e8d7d6529a
HMSSDK: 010fdd904b8d221bb297864800503132fd721d9e
HMSWebRTC: ae54e9dd91b869051b283b43b14f57d43b7bf8e1
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Expand All @@ -649,7 +649,7 @@ SPEC CHECKSUMS:
react-native-avoid-softinput: 71a692888f0c1d426ad9045dc8325773583962cd
react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f
react-native-document-picker: 69ca2094d8780cfc1e7e613894d15290fdc54bba
react-native-hms: e119fe54d8688312472d9f16d920a5c4843124f3
react-native-hms: eba348eb6098cddc14c1e3a3074bd6f9d3fb774e
react-native-safe-area-context: 9e40fb181dac02619414ba1294d6c2a807056ab9
react-native-simple-toast: 8ee5d23f0b92b935ab7434cdb65159ce12dfb4b7
React-perflogger: 5a890ca0911669421b7611661e9b58f91c805f5c
Expand All @@ -665,7 +665,7 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 5b441857030bb6c3abaa7517f333cb01875ae499
ReactCommon: b4a65d2d6e9eeffd4b32dde1245962b3f43907d0
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNCAsyncStorage: 3a8f7145d17cdd9f88e7b77666c94a09e4f759c8
RNDeviceInfo: 1e3f62b9ec32f7754fac60bd06b8f8a27124e7f0
RNFlashList: ade81b4e928ebd585dd492014d40fb8d0e848aab
RNFS: 4ac0f0ea233904cb798630b3c077808c06931688
Expand Down
64 changes: 32 additions & 32 deletions packages/react-native-hms/example/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/react-native-hms/example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RNHMSExample",
"version": "1.9.1",
"version": "1.9.2",
"private": true,
"scripts": {
"preinstall": "cd ../ && npm install && cd ./example",
Expand Down
Loading

0 comments on commit cea894d

Please sign in to comment.