|
@@ -554,6 +554,10 @@ public class VideoManagerRedisStoragerImpl implements IVideoManagerStorager {
|
|
|
List<Object> playLeys = redis.scan(String.format("%S_*_%s_%s", VideoManagerConstants.PLAY_BLACK_PREFIX,
|
|
List<Object> playLeys = redis.scan(String.format("%S_*_%s_%s", VideoManagerConstants.PLAY_BLACK_PREFIX,
|
|
|
deviceId,
|
|
deviceId,
|
|
|
code));
|
|
code));
|
|
|
|
|
+ if (playLeys == null || playLeys.size() == 0) {
|
|
|
|
|
+ playLeys = redis.scan(String.format("%S_*_*_%s", VideoManagerConstants.PLAY_BLACK_PREFIX,
|
|
|
|
|
+ deviceId));
|
|
|
|
|
+ }
|
|
|
if (playLeys == null || playLeys.size() == 0) return null;
|
|
if (playLeys == null || playLeys.size() == 0) return null;
|
|
|
return (StreamInfo)redis.get(playLeys.get(0).toString());
|
|
return (StreamInfo)redis.get(playLeys.get(0).toString());
|
|
|
}
|
|
}
|