Skip to content

Commit e70ae3c

Browse files
committed
Voximplant Unity SDK v2.3.0
1 parent 1e011cf commit e70ae3c

File tree

7 files changed

+23
-34
lines changed

7 files changed

+23
-34
lines changed

Android/unity/src/main/java/com/voximplant/unity/VideoStreamWrapper.java

+2-10
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,15 @@ public void onFrame(VideoFrame videoFrame) {
3434
@CalledByUnity
3535
public int getWidth() {
3636
if (mLastFrame != null) {
37-
if (mLastFrame.getRotation() == 90 || mLastFrame.getRotation() == 270) {
38-
return mLastFrame.getRotatedWidth();
39-
} else {
40-
return mLastFrame.getRotatedHeight();
41-
}
37+
return mLastFrame.getRotatedWidth();
4238
}
4339
return 0;
4440
}
4541

4642
@CalledByUnity
4743
public int getHeight() {
4844
if (mLastFrame != null) {
49-
if (mLastFrame.getRotation() == 90 || mLastFrame.getRotation() == 270) {
50-
return mLastFrame.getRotatedHeight();
51-
} else {
52-
return mLastFrame.getRotatedWidth();
53-
}
45+
return mLastFrame.getRotatedHeight();
5446
}
5547
return 0;
5648
}

Changelog.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Voximplant Unity SDK changelog
22

3+
## 2.3.0
4+
5+
* Updated Voximplant Android SDK to v2.21.1
6+
* Updated Voximplant iOS SDK to v2.35.0
7+
* Fix: IVideoStream now correctly reports video frame width and height on Android
8+
39
## 2.2.0
410

511
* Updated Voximplant Android SDK to v2.20.1
@@ -26,4 +32,4 @@
2632

2733
## 2.0.0
2834

29-
* Major update of the Voximplant Unity SDK
35+
* Major update of the Voximplant Unity SDK

Unity SDK/Assets/Voximplant/VoximplantSdk.cs

-9
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ internal static T CreateVideoStream<T>() where T : Component
100100

101101
private void SetImplementation(RuntimePlatform platform, ClientConfig clientConfig)
102102
{
103-
Debug.Log(JsonUtility.ToJson(clientConfig));
104103
switch (platform)
105104
{
106105
case RuntimePlatform.Android:
@@ -141,36 +140,28 @@ private void Awake()
141140
[UsedImplicitly]
142141
internal void OnClientEvent(string payload)
143142
{
144-
UnityEngine.Debug.Log($"Message received: {payload}");
145143
var sdkEvent = JsonUtility.FromJson<SdkEvent>(payload);
146-
Debug.Log($"Parsed: {sdkEvent.Event}");
147144
_client.OnEvent(sdkEvent);
148145
}
149146

150147
[UsedImplicitly]
151148
internal void OnCallEvent(string payload)
152149
{
153-
UnityEngine.Debug.Log($"Message received: {payload}");
154150
var sdkEvent = JsonUtility.FromJson<CallSdkEvent>(payload);
155-
Debug.Log($"Parsed: {sdkEvent.Event}");
156151
_client.OnCallEvent(sdkEvent);
157152
}
158153

159154
[UsedImplicitly]
160155
internal void OnEndpointEvent(string payload)
161156
{
162-
Debug.Log($"Message received: {payload}");
163157
var sdkEvent = JsonUtility.FromJson<EndpointSdkEvent>(payload);
164-
Debug.Log($"Parsed: {sdkEvent.Event}");
165158
_client.OnEndpointEvent(sdkEvent);
166159
}
167160

168161
[UsedImplicitly]
169162
internal void OnAudioManagerEvent(string payload)
170163
{
171-
Debug.Log($"Message received: {payload}");
172164
var sdkEvent = JsonUtility.FromJson<SdkEvent>(payload);
173-
Debug.Log($"Parsed: {sdkEvent.Event}");
174165
_audioManager.OnEvent(sdkEvent);
175166
}
176167
}

Unity SDK/Packages/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"com.unity.analytics": "3.2.3",
55
"com.unity.collab-proxy": "1.2.15",
66
"com.unity.package-manager-ui": "2.0.13",
7-
"com.unity.purchasing": "2.0.3",
7+
"com.unity.purchasing": "2.1.1",
88
"com.unity.textmeshpro": "1.4.1",
99
"com.unity.modules.ai": "1.0.0",
1010
"com.unity.modules.animation": "1.0.0",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2018.4.25f1
1+
m_EditorVersion: 2018.4.30f1

iOS/Podfile.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
PODS:
2-
- VoxImplantSDK (2.34.1):
3-
- VoxImplantSDK/Core (= 2.34.1)
4-
- VoxImplantSDK/Core (2.34.1):
5-
- VoxImplantWebRTC (= 78.5.0)
6-
- VoxImplantWebRTC (78.5.0)
2+
- VoxImplantSDK (2.35.0):
3+
- VoxImplantSDK/Core (= 2.35.0)
4+
- VoxImplantSDK/Core (2.35.0):
5+
- VoxImplantWebRTC (= 78.5.1)
6+
- VoxImplantWebRTC (78.5.1)
77

88
DEPENDENCIES:
9-
- VoxImplantSDK (= 2.34.1)
9+
- VoxImplantSDK (= 2.35.0)
1010

1111
SPEC REPOS:
1212
trunk:
1313
- VoxImplantSDK
1414
- VoxImplantWebRTC
1515

1616
SPEC CHECKSUMS:
17-
VoxImplantSDK: 7dba9251abddda2c89c89e6d6a238e3c1ccf8083
18-
VoxImplantWebRTC: 1931752e5ad3eb595a59f426b858dab04250dbba
17+
VoxImplantSDK: 347d313098367012720e4dfc33c0374c91374554
18+
VoxImplantWebRTC: 706f77ca9df71b4013af45a3d4ed7e06185c0be6
1919

2020
PODFILE CHECKSUM: bec6fcfe2f280dd63675865a7fa2eafe2f20facb
2121

22-
COCOAPODS: 1.9.2
22+
COCOAPODS: 1.10.0

versions

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
androidVersion="2.20.1"
2-
iOSVersion="2.34.1"
3-
unityVersion="2.2.0"
1+
androidVersion="2.21.1"
2+
iOSVersion="2.35.0"
3+
unityVersion="2.3.0"
44
unityVersionCode=6

0 commit comments

Comments
 (0)