| | |
| | | import com.genersoft.iot.vmp.conf.SipConfig; |
| | | import com.genersoft.iot.vmp.gb28181.bean.AudioBroadcastCatch; |
| | | import com.genersoft.iot.vmp.gb28181.utils.SipUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | @Component |
| | | public class AudioBroadcastManager { |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(AudioBroadcastManager.class); |
| | | |
| | | @Autowired |
| | | private SipConfig config; |
| | | |
| | | public static Map<String, AudioBroadcastCatch> data = new ConcurrentHashMap<>(); |
| | | |
| | | |
| | | public void update(AudioBroadcastCatch audioBroadcastCatch) { |
| | | if (SipUtils.isFrontEnd(audioBroadcastCatch.getDeviceId())) { |
| | | audioBroadcastCatch.setChannelId(audioBroadcastCatch.getDeviceId()); |