mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 19:49:45 +00:00
Video editor fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user