[TIMOB-24530] Hyperloop Android: Twilio Video SDK addAudioTrack is not a function
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Not Our Bug |
| Resolution Date | 2017-03-31T17:58:00.000+0000 |
| Affected Version/s | Hyperloop 2.0.1, Release 6.0.3, Hyperloop 2.2.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | n/a |
| Reporter | Mostafizur Rahman |
| Assignee | Abir Mukherjee |
| Created | 2017-03-24T07:19:13.000+0000 |
| Updated | 2017-03-31T18:43:58.000+0000 |
You are initializing the
LocalMediaincorrectly. 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 withvar localMedia = LocalMedia.create(context);wherecontextis your current application context. Anyway, you are trying something similar in your second attempt, but you usenewagain, so drop that.addAudioTrackshould work then. Like this:Please follow their docs tightly on that and we'll try to reproduce the same.