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.

44 lines
1.5 KiB

  1. //
  2. // SCManagedVideoNoSoundLogger.h
  3. // Snapchat
  4. //
  5. // Created by Pinlin Chen on 15/07/2017.
  6. //
  7. //
  8. #import <SCBase/SCMacros.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <Foundation/Foundation.h>
  11. @protocol SCManiphestTicketCreator;
  12. @interface SCManagedVideoNoSoundLogger : NSObject
  13. @property (nonatomic, strong) NSError *audioSessionError;
  14. @property (nonatomic, strong) NSError *audioQueueError;
  15. @property (nonatomic, strong) NSError *assetWriterError;
  16. @property (nonatomic, assign) BOOL retryAudioQueueSuccess;
  17. @property (nonatomic, assign) BOOL retryAudioQueueSuccessSetDataSource;
  18. @property (nonatomic, strong) NSString *brokenMicCodeType;
  19. @property (nonatomic, assign) BOOL lenseActiveWhileRecording;
  20. @property (nonatomic, strong) NSString *activeLensId;
  21. @property (nonatomic, assign) CMTime firstWrittenAudioBufferDelay;
  22. @property (nonatomic, assign) BOOL audioQueueStarted;
  23. SC_INIT_AND_NEW_UNAVAILABLE
  24. - (instancetype)initWithTicketCreator:(id<SCManiphestTicketCreator>)ticketCreator;
  25. /* Use to counting how many no sound issue we have fixed */
  26. // Call at the place where we have fixed the AVPlayer leak before
  27. + (void)startCountingVideoNoSoundHaveBeenFixed;
  28. /* Use to report the detail of new no sound issue */
  29. // Reset all the properties of recording error
  30. - (void)resetAll;
  31. // Log if the audio track is empty
  32. - (void)checkVideoFileAndLogIfNeeded:(NSURL *)videoURL;
  33. // called by AVCameraViewController when lense resume audio
  34. - (void)managedLensesProcessorDidCallResumeAllSounds;
  35. @end