-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrections and Mute option added #260
base: master
Are you sure you want to change the base?
Changes from all commits
f8a4288
722a074
86864a0
b5457c2
5f8cbd0
fd3e2d0
fd2bef6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ - (id)init { | |
self = [super init]; | ||
|
||
if (self) { | ||
_shouldSuppressPlayerRendering = YES; | ||
_shouldSuppressPlayerRendering = NO; | ||
[self addObserver:self forKeyPath:@"currentItem" options:NSKeyValueObservingOptionNew context:ItemChanged]; | ||
} | ||
|
||
|
@@ -321,6 +321,8 @@ - (void)setItemByAsset:(AVAsset *)asset { | |
} | ||
|
||
- (void)setItem:(AVPlayerItem *)item { | ||
[self unsetupDisplayLink]; | ||
[self setupDisplayLink]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What those these two lines fix? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same previous bug, to prevent black screen bug, when playing a movie preview. |
||
[self replaceCurrentItemWithPlayerItem:item]; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,8 +439,7 @@ - (CMSampleBufferRef)adjustBuffer:(CMSampleBufferRef)sample withTimeOffset:(CMTi | |
pInfo[i].duration = duration; | ||
} | ||
|
||
CMSampleBufferRef sout; | ||
CMSampleBufferCreateCopyWithNewTiming(nil, sample, count, pInfo, &sout); | ||
CMSampleBufferRef sout = sample; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here you are simply ignoring the adjustment made to the buffer above. Why do you need to do that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To solve the previous audio buffer leak. |
||
free(pInfo); | ||
return sout; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,11 @@ | |
*/ | ||
@property (readonly, nonatomic) BOOL isRecording; | ||
|
||
/** | ||
If true the SCRecorder will only record video, not audio | ||
*/ | ||
@property (nonatomic) BOOL mute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can already do this by disabling the audio in audioConfiguration There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you post a snippet code? |
||
|
||
/** | ||
Change the flash mode on the camera | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want this to be false by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent black screen bug, when playing a movie preview.