mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
41 lines
996 B
Objective-C
Executable File
41 lines
996 B
Objective-C
Executable File
//
|
|
// Created by Tikhonenko Pavel on 26/11/2013.
|
|
// Copyright (c) 2013 Coub. All rights reserved.
|
|
//
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "CBCoubAsset.h"
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
@class CBCoubLoopCompositionMaker;
|
|
@protocol CBCoubAsset;
|
|
|
|
@protocol CBCoubLoopDelegate<NSObject>
|
|
|
|
@required
|
|
- (void)coubLoopDidFinishPreparing:(CBCoubLoopCompositionMaker *)loop;
|
|
- (void)coubLoop:(CBCoubLoopCompositionMaker *)loop didFailToLoadWithError:(NSError *)error;
|
|
|
|
@end
|
|
|
|
@interface CBCoubLoopCompositionMaker : NSObject
|
|
|
|
@property (nonatomic, weak) id<CBCoubLoopDelegate> delegate;
|
|
@property (nonatomic, strong) id<CBCoubAsset> asset;
|
|
|
|
@property (nonatomic, strong) AVAsset *videoAsset;
|
|
@property (nonatomic, strong) NSError *error;
|
|
@property (nonatomic, readonly) BOOL hasAudio;
|
|
|
|
@property (nonatomic, assign, getter=isLoopReady) BOOL loopReady;
|
|
|
|
- (void)prepareLoop;
|
|
- (void)cancelPrepareLoop;
|
|
|
|
- (void)notifyObservers;
|
|
|
|
+ (instancetype)coubLoopWithAsset:(id<CBCoubAsset>)asset;
|
|
|
|
@end |