From 2f747f3433a627541aa47f1b89089bc1fd76d80d Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Sat, 23 Sep 2023 15:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20playback=20timeField=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docking/gb28181/core/sip/gb28181/sdp/MediaSdpHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/gb28181/sdp/MediaSdpHelper.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/gb28181/sdp/MediaSdpHelper.java index 830cca6..e42d85e 100644 --- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/gb28181/sdp/MediaSdpHelper.java +++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/core/sip/gb28181/sdp/MediaSdpHelper.java @@ -113,8 +113,8 @@ public class MediaSdpHelper { @SneakyThrows public static GB28181Description playback(String deviceId, String channelId, String netType, String rtpIp, int rtpPort, String ssrc, StreamMode streamMode, Date start, Date end) { TimeField timeField = new TimeField(); - timeField.setStart(start); - timeField.setStop(end); + timeField.setStartTime(start.toInstant().getEpochSecond()); + timeField.setStopTime(end.toInstant().getEpochSecond()); TimeDescription timeDescription = SdpFactory.getInstance().createTimeDescription(timeField); GB28181Description description = build(Action.PLAY_BACK, deviceId, channelId, netType, rtpIp, rtpPort, ssrc, streamMode, timeDescription);