|  |  |  | 
|---|
|  |  |  | // | 
|---|
|  |  |  | StringBuffer content = new StringBuffer(200); | 
|---|
|  |  |  | content.append("v=0\r\n"); | 
|---|
|  |  |  | content.append("o="+channelId+" 0 0 IN IP4 "+mediaInfo.getLocalIP()+"\r\n"); | 
|---|
|  |  |  | content.append("o="+channelId+" 0 0 IN IP4 "+mediaInfo.getWanIp()+"\r\n"); | 
|---|
|  |  |  | content.append("s=Play\r\n"); | 
|---|
|  |  |  | content.append("c=IN IP4 "+mediaInfo.getLocalIP()+"\r\n"); | 
|---|
|  |  |  | content.append("c=IN IP4 "+mediaInfo.getWanIp()+"\r\n"); | 
|---|
|  |  |  | content.append("t=0 0\r\n"); | 
|---|
|  |  |  | if("TCP-PASSIVE".equals(streamMode)) { | 
|---|
|  |  |  | content.append("m=video "+ mediaPort +" TCP/RTP/AVP 96 98 97\r\n"); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | content.append("y="+ssrc+"\r\n");//ssrc | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Request request = headerProvider.createInviteRequest(device, channelId, content.toString(), null, "live", null); | 
|---|
|  |  |  | Request request = headerProvider.createInviteRequest(device, channelId, content.toString(), null, "live", null, ssrc); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ClientTransaction transaction = transmitRequest(device, request); | 
|---|
|  |  |  | streamSession.put(ssrc, transaction); | 
|---|