Skip to content

Commit 04c9843

Browse files
committed
change property to audioOnly
1 parent ff08a27 commit 04c9843

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* apiKey
1919
* sessionId
2020
* token
21-
* videoOnly
21+
* audioOnly (creation only)
2222

2323
### Methods
2424
* connect

android/src/ti/vonage/VonageViewProxy.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class VonageViewProxy extends TiViewProxy implements Session.SessionListe
5353
private FrameLayout mSubscriberViewContainer;
5454
private Publisher mPublisher;
5555
private Subscriber mSubscriber;
56-
private boolean videoOnly = false;
56+
private boolean audioOnly = false;
5757

5858
private class VonageView extends TiUIView
5959
{
@@ -95,8 +95,8 @@ public void processProperties(KrollDict d)
9595
if (d.containsKey("token")) {
9696
TOKEN = (d.getString("token"));
9797
}
98-
if (d.containsKey("videoOnly")) {
99-
videoOnly = (d.getBoolean("videoOnly"));
98+
if (d.containsKey("audioOnly")) {
99+
audioOnly = (d.getBoolean("audioOnly"));
100100
}
101101
}
102102

@@ -182,7 +182,7 @@ public void onConnected(Session session)
182182
{
183183
Log.d(LCAT, "Session Connected");
184184
Publisher.Builder pb = new Publisher.Builder(TiApplication.getAppCurrentActivity());
185-
if (videoOnly) {
185+
if (audioOnly) {
186186
pb.videoTrack(false);
187187
}
188188
mPublisher = pb.build();

0 commit comments

Comments
 (0)