/** * Adds a new Track associated with this ProxySession. * * @param url The URL used as a control reference for the Track * @param serverSsrc the SSRC id given by the server or null if not provided * @return a reference to the newly created Track */ public synchronized Track addTrack(String url, String serverSsrc) { Track track = new Track(url); if (serverSsrc != null) track.setServerSSRC(serverSsrc); trackList.put(url, track); log.debug("ProxySession: " + clientSessionId + " Added track. TrackList: " + trackList); return track; }