This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8127想要同时实现h264组播和单播(单播用于onvif),这种做法可行吗,在live555里面创建两个进程



具体代码如下:

  child[0] = fork();

  if( child[0] > 0 )   {   /* parent, success */  msg_type = LIVE_MSG_TYPE9;  video_type = VIDEO_TYPE_H264;  rtspServerPortNum = 8557;  H264VideoBitrate = 12000000;  videoRTPPortNum = 6016;  audioRTPPortNum = 6028;  OverHTTPPortNum = 8304;  streamingMode = STREAMING_UNICAST;   }   else if(child[0] == 0)   {      /* parent, success */   msg_type = LIVE_MSG_TYPE5;   video_type = VIDEO_TYPE_H264;   rtspServerPortNum = 8554;

  H264VideoBitrate = 12000000;   videoRTPPortNum = 6032;   audioRTPPortNum = 6034;   OverHTTPPortNum = 8304;   streamingMode = STREAMING_MULTICAST_SSM;   }