Skip to content

Commit

Permalink
change property to audioOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Feb 10, 2022
1 parent ff08a27 commit 04c9843
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* apiKey
* sessionId
* token
* videoOnly
* audioOnly (creation only)

### Methods
* connect
Expand Down
8 changes: 4 additions & 4 deletions android/src/ti/vonage/VonageViewProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class VonageViewProxy extends TiViewProxy implements Session.SessionListe
private FrameLayout mSubscriberViewContainer;
private Publisher mPublisher;
private Subscriber mSubscriber;
private boolean videoOnly = false;
private boolean audioOnly = false;

private class VonageView extends TiUIView
{
Expand Down Expand Up @@ -95,8 +95,8 @@ public void processProperties(KrollDict d)
if (d.containsKey("token")) {
TOKEN = (d.getString("token"));
}
if (d.containsKey("videoOnly")) {
videoOnly = (d.getBoolean("videoOnly"));
if (d.containsKey("audioOnly")) {
audioOnly = (d.getBoolean("audioOnly"));
}
}

Expand Down Expand Up @@ -182,7 +182,7 @@ public void onConnected(Session session)
{
Log.d(LCAT, "Session Connected");
Publisher.Builder pb = new Publisher.Builder(TiApplication.getAppCurrentActivity());
if (videoOnly) {
if (audioOnly) {
pb.videoTrack(false);
}
mPublisher = pb.build();
Expand Down

0 comments on commit 04c9843

Please sign in to comment.