Commit 083523d2042e4b37f3c3d1cd71d7c3426f2f9754

Authored by 648540858
Committed by GitHub
2 parents 9f7dc295 05427002

Merge pull request #1188 from lunasaw/wvp-28181-2.0-fix

fix find stream
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
... ... @@ -394,7 +394,7 @@ public class PlayServiceImpl implements IPlayService {
394 394 deviceChannel.setStreamId(streamInfo.getStream());
395 395 storager.startPlay(deviceId, channelId, streamInfo.getStream());
396 396 }
397   - InviteInfo inviteInfo = inviteStreamService.getInviteInfoByDeviceAndChannel(InviteSessionType.PLAYBACK, deviceId, channelId);
  397 + InviteInfo inviteInfo = inviteStreamService.getInviteInfoByStream(InviteSessionType.PLAYBACK, ((OnStreamChangedHookParam) param).getStream());
398 398 if (inviteInfo != null) {
399 399 inviteInfo.setStatus(InviteSessionStatus.ok);
400 400  
... ...