Video editor fixes

This commit is contained in:
Ilya Laktyushin
2020-05-26 18:37:52 +03:00
parent 2d95e415ff
commit ef2ff1fec0
3 changed files with 7 additions and 5 deletions

View File

@@ -255,8 +255,10 @@
UIWindow *keyWindow = self.window; //[UIApplication sharedApplication].keyWindow;
UIView *rootView = keyWindow.rootViewController.view;
_volumeOverlayFixView = [[MPVolumeView alloc] initWithFrame:CGRectMake(10000, 10000, 20, 20)];
[rootView addSubview:_volumeOverlayFixView];
if (iosMajorVersion() < 13) {
_volumeOverlayFixView = [[MPVolumeView alloc] initWithFrame:CGRectMake(10000, 10000, 20, 20)];
[rootView addSubview:_volumeOverlayFixView];
}
}
- (void)releaseVolumeOverlay

View File

@@ -579,7 +579,7 @@
CGSize dimensions = CGSizeZero;
NSDictionary *outputSettings = nil;
CMTimeRange timeRange = CMTimeRangeMake(CMTimeMakeWithSeconds(0.0, NSEC_PER_SEC), CMTimeMakeWithSeconds(4.0, NSEC_PER_SEC));
CMTimeRange timeRange = CMTimeRangeMake(CMTimeMakeWithSeconds(0.0, NSEC_PER_SEC), CMTimeMakeWithSeconds(3.0, NSEC_PER_SEC));
AVMutableComposition *composition = [AVMutableComposition composition];
AVAssetTrack *videoTrack = [[avAsset tracksWithMediaType:AVMediaTypeVideo] firstObject];

View File

@@ -117,7 +117,7 @@ private final class DrawingStickersScreenNode: ViewControllerTracingNode {
self.topPanel = ASDisplayNode()
self.topPanel.clipsToBounds = true
self.topPanel.backgroundColor = UIColor(rgb: 0x151515)
self.topPanel.alpha = 0.4
self.topPanel.alpha = 0.3
let segmentedTheme = SegmentedControlTheme(backgroundColor: UIColor(rgb: 0x2c2d2d), foregroundColor: UIColor(rgb: 0x656565), shadowColor: UIColor.clear, textColor: .white, dividerColor: .white)
self.segmentedControlNode = SegmentedControlNode(theme: segmentedTheme, items: [SegmentedControlItem(title: self.presentationData.strings.Paint_Stickers), SegmentedControlItem(title: self.presentationData.strings.Paint_Masks)], selectedIndex: 0)
@@ -128,7 +128,7 @@ private final class DrawingStickersScreenNode: ViewControllerTracingNode {
self.collectionListPanel = ASDisplayNode()
self.collectionListPanel.clipsToBounds = true
self.collectionListPanel.backgroundColor = UIColor(rgb: 0x151515)
self.collectionListPanel.alpha = 0.4
self.collectionListPanel.alpha = 0.3
self.collectionListContainer = CollectionListContainerNode()
self.collectionListContainer.clipsToBounds = true