优化录像下载。 支持八倍速(设备支持的最高速度)下载
This commit is contained in:
@@ -173,9 +173,9 @@ public class MediaServiceImpl implements IMediaService {
|
||||
if (ssrcTransaction.getType() == InviteSessionType.DOWNLOAD) {
|
||||
// 获取录像的总时长,然后设置为这个视频的时长
|
||||
InviteInfo inviteInfoForDownload = inviteStreamService.getInviteInfo(InviteSessionType.DOWNLOAD, channelId, stream);
|
||||
if (inviteInfoForDownload != null && inviteInfoForDownload.getStreamInfo() != null) {
|
||||
String startTime = inviteInfoForDownload.getStreamInfo().getStartTime();
|
||||
String endTime = inviteInfoForDownload.getStreamInfo().getEndTime();
|
||||
if (inviteInfoForDownload != null) {
|
||||
String startTime = inviteInfoForDownload.getStartTime();
|
||||
String endTime = inviteInfoForDownload.getEndTime();
|
||||
long difference = DateUtil.getDifference(startTime, endTime) / 1000;
|
||||
result.setMp4_max_second((int) difference);
|
||||
result.setEnable_mp4(true);
|
||||
|
||||
Reference in New Issue
Block a user