2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. //
  2. // SCCaptureRecordingStateTransitionPayload.m
  3. // Snapchat
  4. //
  5. // Created by Jingtian Yang on 12/01/2018.
  6. //
  7. #import "SCCaptureRecordingStateTransitionPayload.h"
  8. @implementation SCCaptureRecordingStateTransitionPayload
  9. - (instancetype)initWithFromState:(SCCaptureStateMachineStateId)fromState
  10. toState:(SCCaptureStateMachineStateId)toState
  11. outputSettings:(SCManagedVideoCapturerOutputSettings *)outputSettings
  12. audioConfiguration:configuration
  13. maxDuration:(NSTimeInterval)maxDuration
  14. fileURL:(NSURL *)fileURL
  15. captureSessionID:(NSString *)captureSessionID
  16. completionHandler:(sc_managed_capturer_start_recording_completion_handler_t)block
  17. {
  18. self = [super initWithFromState:fromState toState:toState];
  19. if (self) {
  20. _outputSettings = outputSettings;
  21. _configuration = configuration;
  22. _maxDuration = maxDuration;
  23. _fileURL = fileURL;
  24. _captureSessionID = captureSessionID;
  25. _block = block;
  26. }
  27. return self;
  28. }
  29. @end