From 0a19ce4f34e78e65ec73ee6e6b99ffa4f0d1f406 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Fri, 1 Aug 2025 19:45:40 +0800 Subject: [PATCH] =?UTF-8?q?[1078]=20=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SourcePlaybackServiceForJTImpl.java | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/service/impl/SourcePlaybackServiceForJTImpl.java b/src/main/java/com/genersoft/iot/vmp/jt1078/service/impl/SourcePlaybackServiceForJTImpl.java index 8ed322a4d..0d3aca620 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/service/impl/SourcePlaybackServiceForJTImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/service/impl/SourcePlaybackServiceForJTImpl.java @@ -1,23 +1,29 @@ package com.genersoft.iot.vmp.jt1078.service.impl; -import com.genersoft.iot.vmp.common.InviteSessionType; import com.genersoft.iot.vmp.common.StreamInfo; import com.genersoft.iot.vmp.common.enums.ChannelDataType; import com.genersoft.iot.vmp.gb28181.bean.CommonGBChannel; -import com.genersoft.iot.vmp.gb28181.bean.PlayException; -import com.genersoft.iot.vmp.gb28181.service.IPlayService; +import com.genersoft.iot.vmp.gb28181.bean.CommonRecordInfo; import com.genersoft.iot.vmp.gb28181.service.ISourcePlaybackService; +import com.genersoft.iot.vmp.jt1078.bean.JTChannel; +import com.genersoft.iot.vmp.jt1078.bean.JTDevice; +import com.genersoft.iot.vmp.jt1078.service.Ijt1078PlayService; import com.genersoft.iot.vmp.service.bean.ErrorCallback; import lombok.extern.slf4j.Slf4j; +import org.checkerframework.checker.units.qual.A; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.util.Assert; -import javax.sip.message.Response; +import java.util.List; @Slf4j @Service(ChannelDataType.PLAYBACK_SERVICE + ChannelDataType.JT_1078) public class SourcePlaybackServiceForJTImpl implements ISourcePlaybackService { + @Autowired + private Ijt1078PlayService playService; + @Override public void playback(CommonGBChannel channel, Long startTime, Long stopTime, ErrorCallback callback) { @@ -33,4 +39,29 @@ public class SourcePlaybackServiceForJTImpl implements ISourcePlaybackService { public void playbackPause(CommonGBChannel channel, String stream) { } + + @Override + public void playbackResume(CommonGBChannel channel, String stream) { + + } + + @Override + public void playbackSeek(CommonGBChannel channel, String stream, long seekTime) { + + } + + @Override + public void playbackSpeed(CommonGBChannel channel, String stream, Double speed) { + + } + + @Override + public void queryRecord(CommonGBChannel channel, String startTime, String endTime, ErrorCallback> callback) { + JTChannel jtChannel = jt1078Service.getChannelByDbId(channelId); + Assert.notNull(channel, "通道不存在"); + JTDevice device = jt1078Service.getDeviceById(channel.getTerminalDbId()); + Assert.notNull(device, "设备不存在"); + jt1078Template.checkTerminalStatus(device.getPhoneNumber()); + playService.getRecordList() + } }