summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlapinskijw <jlapinski.dev@gmail.com>2020-05-11 09:13:42 -0400
committerlapinskijw <jlapinski.dev@gmail.com>2020-05-11 09:13:42 -0400
commit8c155e42378c3654afcb4ed829760c4c1d0ba8c9 (patch)
tree8856deec3d8601843eb70bdfffe57d0f574f2647
parentbb017188e769ddc486eeddc8622dc88632cc6fb7 (diff)
downloadsdl_ios-8c155e42378c3654afcb4ed829760c4c1d0ba8c9.tar.gz
added call to send frames when video stream is ready
-rw-r--r--SmartDeviceLink/SDLH264VideoEncoder.m1
-rw-r--r--SmartDeviceLink/SDLStreamingVideoLifecycleManager.m1
-rw-r--r--SmartDeviceLink/SDLVideoEncoderDelegate.h1
3 files changed, 1 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLH264VideoEncoder.m b/SmartDeviceLink/SDLH264VideoEncoder.m
index f3817a5b0..06f9a4789 100644
--- a/SmartDeviceLink/SDLH264VideoEncoder.m
+++ b/SmartDeviceLink/SDLH264VideoEncoder.m
@@ -187,7 +187,6 @@ static NSDictionary<NSString *, id>* _defaultVideoEncoderSettings;
- (BOOL)encodeSavedFrame:(CVImageBufferRef)imageBuffer {
return [self encodeSavedFrame:imageBuffer presentationTimestamp:kCMTimeInvalid];
-
}
- (BOOL)encodeSavedFrame:(CVImageBufferRef)imageBuffer presentationTimestamp:(CMTime)presentationTimestamp {
diff --git a/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m b/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
index 39c16e338..3d4541c19 100644
--- a/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
+++ b/SmartDeviceLink/SDLStreamingVideoLifecycleManager.m
@@ -470,6 +470,7 @@ typedef void(^SDLVideoCapabilityResponseHandler)(SDLVideoStreamingCapability *_N
}
self.backgroundingPixelBuffer = backgroundingPixelBuffer;
+ [self sdl_sendBackgroundFrames];
}
self.lastPresentationTimestamp = kCMTimeInvalid;
}
diff --git a/SmartDeviceLink/SDLVideoEncoderDelegate.h b/SmartDeviceLink/SDLVideoEncoderDelegate.h
index 790daa3fb..42754fec2 100644
--- a/SmartDeviceLink/SDLVideoEncoderDelegate.h
+++ b/SmartDeviceLink/SDLVideoEncoderDelegate.h
@@ -14,7 +14,6 @@
- (void)videoEncoder:(SDLH264VideoEncoder *)encoder hasEncodedFrame:(NSData*)encodedVideo;
-@optional
- (void)videoEncoder:(SDLH264VideoEncoder *)encoder hasEncodedFramesToBeSaved:(NSArray *)encodedVideoFrames;
@end