Error - Failed to create local track. Button for Audio Mic and Video is disabled. However i'm connected to conference

D/ReactNative: ReactInstanceManager.attachRootViewToInstance()
I/ReactNativeJS: ‘[__filename]’, ': ', ‘redux state rehydrated as’, { ‘features/blur’: { blurEnabled: false },
‘features/base/known-domains’: [ ‘alpha.jitsi.net’, ‘beta.meet.jit.si’, ‘meet.jit.si’, ‘8x8.vc’ ],
‘features/base/settings’:
{ avatarID: ‘a0f065577ef9987a07da8031670ea3d3’,
displayName: ‘xik’,
email: ‘anders@atz.se’,
localFlipX: true,
startAudioOnly: false,
startWithAudioMuted: false,
startWithVideoMuted: false,
avatarURL: ‘https://panel.immerch.com/user-face-images/1564219059552.png’ },
‘features/dropbox’: {},
‘features/video-layout’: { tileViewEnabled: false },
‘features/calendar-sync’: {},
‘features/recent-list’:
[ { conference: ‘https://meet.jit.si/f119f6db-3da2-4a4b-9f98-7754d11ddf2b#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=“Jhulelal”’,
date: 1566312793996,
duration: 6805 },
{ conference: ‘https://meet.jit.si/5c7907b34a0563404d6eced95d1dd17722cd252cfb4b2098#config.startAudioOnly=false&config.startWithVideoMuted=true&config.subject=“Ravi%20”’,
date: 1566371733121,
duration: 15857 },
{ conference: ‘https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=“dhara%20golakiya”’,
date: 1566380298943,
duration: 480035 } ],
‘features/welcome’: {} }
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=JitsiMeetActivity, firebase_previous_id(_pi)=404688975769017428, firebase_screen_class(_sc)=JitsiMeetActivity, firebase_screen_id(_si)=404688975769017429}]
I/ReactNativeJS: ‘[__filename]’, ': ', ‘No connection found while disconnecting.’
D/AudioMode: Update audio route for mode: 0
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 102994551
I/ReactNativeJS: ‘[modules/RTC/ScreenObtainer.js]’, ': ', 'Screen sharing not supported by the current browser: ', ‘react-native’
I/ReactNativeJS: ‘[modules/RTC/ScreenObtainer.js]’, ': ', ‘Desktop sharing disabled’
I/ReactNativeJS: ‘[__filename]’, ': ', 'Start muted: ’
I/ReactNativeJS: ‘[__filename]’, ': ', ‘Start audio only set to true’
I/ReactNativeJS: ‘[__filename]’, ': ', ‘Audio-only enabled’
D/ExternalAPI: Sending event: CONFERENCE_WILL_JOIN with data: { NativeMap: {“url”:“https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=“dhara%20golakiya””} }
D/JitsiMeetActivity: Conference will join: {url=https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=%22dhara%20golakiya%22}
I/ReactNativeJS: ‘[modules/xmpp/xmpp.js]’, ': ', 'P2P STUN servers: ', [ { urls: ‘stun:stun.l.google.com:19302’ },
{ urls: ‘stun:stun1.l.google.com:19302’ },
{ urls: ‘stun:stun2.l.google.com:19302’ } ]
I/ReactNativeJS: ‘[modules/xmpp/xmpp.js]’, ': ', ‘(TIME) Strophe connecting:\t’, 1566380784790
I/ReactNativeJS: ‘[modules/RTC/RTCUtils.js]’, ': ', ‘Get media constraints’, { audio: true, video: false }
D/ReactNativeJS: ‘[modules/RTC/RTCUtils.js]’, ': ', 'Available devices: ', [ { kind: ‘videoinput’, label: ‘0’, groupId: ‘’, deviceId: ‘0’ },
{ kind: ‘videoinput’, label: ‘1’, groupId: ‘’, deviceId: ‘1’ },
{ kind: ‘audioinput’,
label: ‘Audio’,
groupId: ‘’,
deviceId: ‘audio-1’ } ]
D/com.oney.WebRTCModule.WebRTCModule: mandatory constraints are not a map
D/com.oney.WebRTCModule.WebRTCModule: optional constraints are not an array
D/com.oney.WebRTCModule.WebRTCModule: getUserMedia(audio): mandatory: , optional:
D/com.oney.WebRTCModule.WebRTCModule: MediaStream id: 80333ea2-b497-42d8-99de-513e4e351922
I/ReactNativeJS: ‘[modules/RTC/RTCUtils.js]’, ': ', ‘onUserMediaSuccess’
E/ReactNativeJS: ‘[__filename]’, ': ', ‘Failed to create local tracks’, [ ‘audio’ ], { [TypeError: v.mediaStreamCreate is not a function. (In ‘v.mediaStreamCreate(c.id)’, ‘v.mediaStreamCreate’ is undefined)] line: 777, column: 460, sourceURL: ‘index.android.bundle’ }
E/unknown:ReactNative: console.error: “[__filename]”, ": ", “Failed to create local tracks”, [“audio”], {“line”:777,“column”:460,“sourceURL”:“index.android.bundle”}, stack:
** @379:2405**
** @-1**
** l@614:840**
** l@-1**
** @810:1152**
** f@116:155**
** @116:882**
** y@121:657**
** C@121:1021**
** callImmediates@121:3216**
** callImmediates@-1**
** value@42:2873**
** @42:1264**
** value@42:2565**
** value@42:1234**
** value@-1**
** value@-1**

I/ReactNativeJS: ‘[__filename]’, ': ', ‘redux state persisted. 438e6ad2d1d08634d3f36b303f15181e -> d24d001a24445aada169ef66760fd8ef’
I/ReactNativeJS: ‘[modules/xmpp/xmpp.js]’, ': ', ‘(TIME) Strophe connected:\t’, 1566380786774
I/ReactNativeJS: ‘[modules/xmpp/xmpp.js]’, ': ', ‘My Jabber ID: 5716b8ab-c7d1-4ef2-8c04-69d2d3a13f71@meet.jit.si/3851cad4-6d96-46df-a88a-676f8a31e41f’
I/ReactNativeJS: ‘[modules/xmpp/xmpp.js]’, ': ', ‘JID 5716b8ab-c7d1-4ef2-8c04-69d2d3a13f71@meet.jit.si/3851cad4-6d96-46df-a88a-676f8a31e41f using MUC nickname 5716b8ab’
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', ‘Joined MUC as 5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a@conference.meet.jit.si/5716b8ab’
I/ReactNativeJS: ‘[modules/e2eping/e2eping.js]’, ': ', ‘Initializing e2e ping; pingInterval=10000, analyticsInterval=60000.’
I/ReactNativeJS: ‘[modules/connectivity/ParticipantConnectionStatus.js]’, ': ', ‘RtcMuteTimeout set to: 10000’
I/ReactNativeJS: ‘[modules/statistics/AvgRTPStatsReporter.js]’, ': ', ‘Avg RTP stats will be calculated every 15 samples’
I/ReactNativeJS: ‘[JitsiConference.js]’, ': ', ‘backToP2PDelay: 5’
D/ReactNativeJS: ‘[modules/videosipgw/VideoSIPGW.js]’, ': ', ‘creating VideoSIPGW’
D/JitsiConnectionService: startCall UUID=6476F247-634D-49D5-8967-A58A040E4043, h=https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a, v=false
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘Focus jid set to: undefined’
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘Session ID: null machine UID: c98ed55babe945391df351a915689bf6’
D/JitsiConnectionService: onCreateOutgoingConnection 6476F247-634D-49D5-8967-A58A040E4043
D/JitsiConnectionService: updateCall: 6476F247-634D-49D5-8967-A58A040E4043 hasVideo: false
I/TelecomFramework: ConnectionService: notifyCreateConnectionComplete TC@77_1: (…->CSW.hCCC)->CS.crCoC->H.CS.crCoC@E-E-E-MrI
D/JitsiConnectionService: onCallAudioStateChanged: [AudioState isMuted: false, route: EARPIECE, supportedRouteMask: EARPIECE, SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: ]
I/chatty: uid=10318(com.app.Immerch) identical 2 lines
D/JitsiConnectionService: onCallAudioStateChanged: [AudioState isMuted: false, route: EARPIECE, supportedRouteMask: EARPIECE, SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: ]
D/JitsiConnectionService: onCallAudioStateChanged: [AudioState isMuted: false, route: EARPIECE, supportedRouteMask: EARPIECE, SPEAKER, activeBluetoothDevice: [null], supportedBluetoothDevices: ]
I/ReactNativeJS: ‘[modules/xmpp/strophe.ping.js]’, ': ', ‘XMPP pings will be sent every 10000 ms’
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘Focus jid set to: focus@auth.meet.jit.si’
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘Authentication enabled: false’
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘External authentication enabled: false’
I/ReactNativeJS: ‘[modules/xmpp/moderator.js]’, ': ', ‘Sip gateway enabled: false’
D/WiFiStats: WiFi stats: {“rssi”:-49,“signal”:100,“timestamp”:“1566380787797”,“addresses”:[“192.168.1.130”]}
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', ‘entered’, ‘5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a@conference.meet.jit.si/focus’, { affiliation: ‘owner’,
role: ‘moderator’,
jid: ‘focus@auth.meet.jit.si/focus148542684595’,
isFocus: true,
isHiddenDomain: false }
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', ‘Ignore focus: 5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a@conference.meet.jit.si/focus, real JID: focus@auth.meet.jit.si/focus148542684595’
I/ReactNativeJS: ‘[modules/version/ComponentsVersions.js]’, ': ', ‘Got xmpp version: Prosody(trunk nightly build 747 (2017-02-19, 428d4abee723),Linux)’
I/ReactNativeJS: ‘[modules/version/ComponentsVersions.js]’, ': ', ‘Got focus version: JiCoFo(1.0.1.0-481,Linux)’
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', ‘(TIME) MUC joined:\t’, 1566380788166
D/ExternalAPI: Sending event: CONFERENCE_JOINED with data: { NativeMap: {“url”:“https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=“dhara%20golakiya””} }
D/JitsiMeetActivity: Conference joined: {url=https://meet.jit.si/5c7907b34a0563404d6eced95d1f403e91257f595b7e3b4a#config.startAudioOnly=true&config.startWithVideoMuted=false&config.subject=%22dhara%20golakiya%22}
D/JitsiConnectionService: reportConnectedOutgoingCall 6476F247-634D-49D5-8967-A58A040E4043
D/JitsiConnectionService: onStateChanged: ACTIVE 6476F247-634D-49D5-8967-A58A040E4043
D/AudioMode: Update audio route for mode: 1
D/AudioMode: Selected audio device: EARPIECE
I/JitsiMeetOngoingConferenceService: Service started
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', 'Subject is changed to ’
I/ReactNativeJS: ‘[modules/xmpp/ChatRoom.js]’, ': ', ‘Subject is changed to dhara golakiya’
V/FA: Inactivity, disconnecting from the service

Is it really that hard to type in the question?

What version are you trying to compile? By the looks of it it’s old because we have updated the WebRTC version since.

Apologies for the inappropriate question. I have updated that.

I’m using this in Jitsi Meet Android Client SDK with Gradle Build System.
Dependency : org.jitsi.react:jitsi-meet-sdk:2.2.2

We are actually looking for updated UI hence we have kept a prebuild JsBundle package index.bundle.android in the Project Assets folder.

Later we started the conference - Button for Audio and Video is disabled, Not sure why. Error in logcat is below.

E/ReactNativeJS: ‘[__filename]’, ': ', ‘Failed to create local tracks’, [ ‘audio’ ], { [TypeError: v.mediaStreamCreate is not a function. (In ‘v.mediaStreamCreate(c.id)’, ‘v.mediaStreamCreate’ is undefined)] line: 777, column: 460, sourceURL: ‘index.android.bundle’ }
E/unknown:ReactNative: console.error: “[__filename]”, ": ", “Failed to create local tracks”, [“audio”], {“line”:777,“column”:460,“sourceURL”:“index.android.bundle”}

Thank you for your help.

How have you modified the SDK? mediaStreamCreate is not available in SDK 2.2.2 because it’s part of a newer version of rect-native-webrtc.

All the node modules are installed from npm. Currently in package.json file below version is mentiond there for react-webrtc module.

"react-native-webrtc": "github:jitsi/react-native-webrtc#44ecfddfa816d260087e16c92f299ded169a4472"

Not sure this one is older or newer one.

That’s the new one. If you are rebuilding 2.2.2 then you should checkout the tag, make changes and then rebuilt it, otherwise you’ll run into issues like this one. This is the 2.2.2 tag: https://github.com/jitsi/jitsi-meet/releases/tag/android-sdk-2.2.2

Okay. Thank you for your help and support. I will check and update very soon. :slight_smile:

1 Like