Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24530] Hyperloop Android: Twilio Video SDK addAudioTrack is not a function

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNot Our Bug
Resolution Date2017-03-31T17:58:00.000+0000
Affected Version/sHyperloop 2.0.1, Release 6.0.3, Hyperloop 2.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterMostafizur Rahman
AssigneeAbir Mukherjee
Created2017-03-24T07:19:13.000+0000
Updated2017-03-31T18:43:58.000+0000

Description

Comments

  1. Hans Knöchel 2017-03-26

    You are initializing the LocalMedia incorrectly. This is not a Titanium but a coding issue. Per [Twilio docs](https://media.twiliocdn.com/sdk/android/video/releases/1.0.0-beta13/docs/) and [Twilio example](https://www.twilio.com/docs/api/video/getting-started), you create the instance with var localMedia = LocalMedia.create(context); where context is your current application context. Anyway, you are trying something similar in your second attempt, but you use new again, so drop that. addAudioTrack should work then. Like this:
       var localMedia = LocalMedia.create(activity);
       localMedia.addAudioTrack(true);
       
    Please follow their docs tightly on that and we'll try to reproduce the same.

JSON Source