-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmpserverd: Add RecordingManager stubs
- Loading branch information
Showing
3 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* vmpserverd - A virtual multimedia processor | ||
* Copyright (C) 2024 Hugo Melder | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#import "VMPPipelineManager.h" | ||
|
||
/// The encoding bitrate | ||
extern NSString *const kVMPRecordingBitrate; | ||
|
||
/** | ||
* @brief Recording Manager | ||
* | ||
* A subclass of th pipeline manager that | ||
* has extensions for recording to a | ||
* file. | ||
*/ | ||
@interface VMPRecordingManager : VMPPipelineManager | ||
|
||
|
||
/** | ||
* Absolute destination path of recording. | ||
*/ | ||
@property (nonatomic, readonly) NSURL *path; | ||
|
||
/** | ||
* Additional recording and encoding options. | ||
*/ | ||
@property (nonatomic, readonly) NSDictionary *options; | ||
|
||
+ (instancetype)recorderWithChannel: (NSString *)channel | ||
path: (NSURL *)path | ||
recordUntil: (NSDate *) date | ||
options: (NSDictionary *)options | ||
delegate: (id<VMPPipelineManagerDelegate>)delegate; | ||
|
||
- (instancetype)initWithChannel: (NSString *)channel | ||
path: (NSURL *)path | ||
recordUntil: (NSDate *) date | ||
options: (NSDictionary *)options | ||
delegate: (id<VMPPipelineManagerDelegate>)delegate NS_DESIGNATED_INITIALIZER; | ||
|
||
- (BOOL) changeDeadline: (NSDate *)date; | ||
|
||
- (NSDate *) deadline; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* vmpserverd - A virtual multimedia processor | ||
* Copyright (C) 2024 Hugo Melder | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#import "VMPRecordingManager.h" | ||
|
||
NSString *const kVMPRecordingBitrate = @"recordingBitrate"; | ||
|
||
@implementation VMPRecordingManager | ||
{ | ||
NSDate *_deadline; | ||
} | ||
|
||
+ (instancetype)recorderWithChannel: (NSString *)channel | ||
path: (NSURL *)path | ||
recordUntil: (NSDate *) date | ||
options: (NSDictionary *)options | ||
delegate: (id<VMPPipelineManagerDelegate>)delegate { | ||
return nil; | ||
} | ||
|
||
- (instancetype)initWithChannel: (NSString *)channel | ||
path: (NSURL *)path | ||
recordUntil: (NSDate *) date | ||
options: (NSDictionary *)options | ||
delegate: (id<VMPPipelineManagerDelegate>)delegate { | ||
self = [super initWithLaunchArgs: @"" channel: channel delegate: delegate]; | ||
return self; | ||
|
||
} | ||
|
||
- (BOOL) changeDeadline: (NSDate *)date { | ||
return NO; | ||
} | ||
|
||
- (NSDate *) deadline { | ||
return nil; | ||
} | ||
|
||
@end |