Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-07-11 12:41:25 +03:00
parent b1074abfe2
commit 58cc60eaa1
4 changed files with 17 additions and 3 deletions

View File

@@ -1274,6 +1274,12 @@
[strongSelf stopVideoPlayback:false];
}
};
cropController.isVideoPlaying = ^bool{
__strong TGPhotoEditorController *strongSelf = weakSelf;
if (strongSelf == nil)
return false;
return strongSelf->_isPlaying;
};
cropController.togglePlayback = ^{
__strong TGPhotoEditorController *strongSelf = weakSelf;
if (strongSelf == nil || !strongSelf->_item.isVideo)
@@ -2902,5 +2908,4 @@
return self.item.originalSize;
}
@end