修正拼写错误
This commit is contained in:
parent
9570167aa4
commit
dcfe366252
@ -329,7 +329,7 @@ public class SIPCommander implements ISIPCommander {
|
||||
streamInfo.setSsrc(ssrc);
|
||||
streamInfo.setCahnnelId(channelId);
|
||||
streamInfo.setDeviceID(device.getDeviceId());
|
||||
boolean b = storager.startPlayBlack(streamInfo);
|
||||
boolean b = storager.startPlayback(streamInfo);
|
||||
return streamInfo;
|
||||
|
||||
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
||||
|
@ -184,11 +184,11 @@ public interface IVideoManagerStorager {
|
||||
|
||||
Map<String, StreamInfo> queryPlayByDeviceId(String deviceId);
|
||||
|
||||
boolean startPlayBlack(StreamInfo streamInfo);
|
||||
boolean startPlayback(StreamInfo streamInfo);
|
||||
|
||||
boolean stopPlayBlack(StreamInfo streamInfo);
|
||||
boolean stopPlayback(StreamInfo streamInfo);
|
||||
|
||||
StreamInfo queryPlayBlackByDevice(String deviceId, String channelId);
|
||||
StreamInfo queryPlaybackByDevice(String deviceId, String channelId);
|
||||
|
||||
StreamInfo queryPlayBlackBySSRC(String ssrc);
|
||||
StreamInfo queryPlaybackBySSRC(String ssrc);
|
||||
}
|
||||
|
@ -195,22 +195,22 @@ public class VideoManagerJdbcStoragerImpl implements IVideoManagerStorager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean startPlayBlack(StreamInfo streamInfo) {
|
||||
public boolean startPlayback(StreamInfo streamInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean stopPlayBlack(StreamInfo streamInfo) {
|
||||
public boolean stopPlayback(StreamInfo streamInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo queryPlayBlackByDevice(String deviceId, String channelId) {
|
||||
public StreamInfo queryPlaybackByDevice(String deviceId, String channelId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo queryPlayBlackBySSRC(String ssrc) {
|
||||
public StreamInfo queryPlaybackBySSRC(String ssrc) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@ -409,7 +409,7 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo queryPlayBlackBySSRC(String ssrc) {
|
||||
public StreamInfo queryPlaybackBySSRC(String ssrc) {
|
||||
// List<Object> playLeys = redis.keys(String.format("%S_%s_*", VideoManagerConstants.PLAYER_PREFIX, ssrc));
|
||||
List<Object> playLeys = redis.scan(String.format("%S_%s_*", VideoManagerConstants.PLAY_BLACK_PREFIX, ssrc));
|
||||
if (playLeys == null || playLeys.size() == 0) return null;
|
||||
@ -505,14 +505,14 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager {
|
||||
|
||||
|
||||
@Override
|
||||
public boolean startPlayBlack(StreamInfo stream) {
|
||||
public boolean startPlayback(StreamInfo stream) {
|
||||
return redis.set(String.format("%S_%s_%s_%s", VideoManagerConstants.PLAY_BLACK_PREFIX, stream.getSsrc(),stream.getDeviceID(), stream.getCahnnelId()),
|
||||
stream);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean stopPlayBlack(StreamInfo streamInfo) {
|
||||
public boolean stopPlayback(StreamInfo streamInfo) {
|
||||
if (streamInfo == null) return false;
|
||||
DeviceChannel deviceChannel = queryChannel(streamInfo.getDeviceID(), streamInfo.getCahnnelId());
|
||||
if (deviceChannel != null) {
|
||||
@ -527,7 +527,7 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public StreamInfo queryPlayBlackByDevice(String deviceId, String code) {
|
||||
public StreamInfo queryPlaybackByDevice(String deviceId, String code) {
|
||||
String format = String.format("%S_*_%s_%s", VideoManagerConstants.PLAY_BLACK_PREFIX,
|
||||
deviceId,
|
||||
code);
|
||||
|
Loading…
Reference in New Issue
Block a user