From 05c053beb3b45fa9bc7e630ff8d63db0f1870675 Mon Sep 17 00:00:00 2001 From: Tiago Jacobs Date: Sat, 12 Feb 2022 01:05:48 -0300 Subject: [PATCH] Add logs to events of ReplayKit2 --- ios/BroadcastUpload/._SampleHandler.swift | Bin 4096 -> 4096 bytes ios/BroadcastUpload/SampleHandler.swift | 4 ++++ 2 files changed, 4 insertions(+) diff --git a/ios/BroadcastUpload/._SampleHandler.swift b/ios/BroadcastUpload/._SampleHandler.swift index 8fd0679fde9a08a3f6a6797f268a750123d12054..06473603e01ade3a5b74770eba29d19f83d7ca5d 100644 GIT binary patch delta 108 zcmV-y0F(cKAb=o{^;jdgzw^ylZrQN_L&OVAV^O|M*l&}2d#*s%mv?V^oa(|l1J#&& zXBy*&F``&)#Ns>q4pp1Bol@h^`{=c(P O0h0}pPz1B&4jcifxit#_ delta 108 zcmV-y0F(cKAb=o{^;kG?T0E9vgMW?K7G07rhd>x1p)~aKRg6q*o90u0FP*=P0q>gm zEnDp#U(D$85(rFSNemZr1s{z$A;dw|lKk)xH?R=xot;EKm!fG_BB)=`ywa~}pjxw0 O0h0}pPz1B&4jchvi7;LO diff --git a/ios/BroadcastUpload/SampleHandler.swift b/ios/BroadcastUpload/SampleHandler.swift index fc52568..3028e97 100644 --- a/ios/BroadcastUpload/SampleHandler.swift +++ b/ios/BroadcastUpload/SampleHandler.swift @@ -11,18 +11,22 @@ class SampleHandler: RPBroadcastSampleHandler { override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) { // User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional. + print("replayKit2 event :: broadcastStarted") } override func broadcastPaused() { // User has requested to pause the broadcast. Samples will stop being delivered. + print("replayKit2 event :: broadcastPaused") } override func broadcastResumed() { // User has requested to resume the broadcast. Samples delivery will resume. + print("replayKit2 event :: broadcastResumed") } override func broadcastFinished() { // User has requested to finish the broadcast. + print("replayKit2 event :: broadcastFinished") } override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) {