Adda property to check if a track can be exported.
This commit is contained in:
3 files changed
+11
No files matched your search
@@ -131,6 +131,11 @@
|
||||
self.updatedProperty[@"forcedSubtitles"] = @YES;
|
||||
}
|
||||
|
||||
- (BOOL)canExport
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
typedef struct style_record {
|
||||
uint16_t startChar;
|
||||
uint16_t endChar;
|
||||
|
||||
@@ -48,6 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (nonatomic, readonly) NSString *timeString;
|
||||
@property (nonatomic, readonly) NSString *formatSummary;
|
||||
|
||||
@property (nonatomic, readonly) BOOL canExport;
|
||||
- (BOOL)exportToURL:(NSURL *)url error:(NSError * __autoreleasing *)error;
|
||||
|
||||
@end
|
||||
|
||||
@@ -322,6 +322,11 @@
|
||||
return localizedDisplayName(_mediaType, self.targetFormat);
|
||||
}
|
||||
|
||||
- (BOOL)canExport
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)exportToURL:(NSURL *)url error:(NSError * __autoreleasing *)error
|
||||
{
|
||||
return YES;
|
||||
|
||||
Reference in new issue
Block a user