You are correct, you need to add localStream variabla to webRTCAdaptor here:
https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html#L446You need to use localStream = {variable you are going to use} instead of localVideoId.
Like:
function initWebRTCAdaptor(publishImmediately, autoRepublishEnabled)
{
webRTCAdaptor = new WebRTCAdaptor({
websocket_url : websocketURL,
mediaConstraints : mediaConstraints,
peerconnection_config : pc_config,
sdp_constraints : sdpConstraints,
localStream : somestream,
debug:debug,
bandwidth:maxVideoBitrateKbps,
.
.
.
Best Regards,
Enes.