{ "id": "166774", "key": "TIMOB-24530", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-03-31T17:58:00.000+0000", "created": "2017-03-24T07:19:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18246", "name": "Hyperloop 2.0.1", "archived": false, "released": true, "releaseDate": "2017-03-17" }, { "id": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" }, { "id": "18429", "description": "", "name": "Hyperloop 2.2.0", "archived": false, "released": true, "releaseDate": "2017-10-16" } ], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T18:43:58.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [], "flagged": false, "summary": "Hyperloop Android: Twilio Video SDK addAudioTrack is not a function", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.12.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 4.3.0\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\n node-appc Version = 0.2.39\r\n\r\nTitanium SDKs\r\n 6.0.3.GA\r\n Version = 6.0.3\r\n Platforms = iphone, android, mobileweb\r\n git Hash = 295540e\r\n git Timestamp = 3/22/2017 19:04\r\n node-appc Version = 0.2.41", "comment": { "comments": [ { "id": "415840", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "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:\r\n{code:js}\r\nvar localMedia = LocalMedia.create(activity);\r\nlocalMedia.addAudioTrack(true);\r\n{code}\r\nPlease follow their docs tightly on that and we'll try to reproduce the same.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-03-26T11:56:42.000+0000", "updated": "2017-03-26T11:59:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }