cameraextension icon indicating copy to clipboard operation
cameraextension copied to clipboard

Don't understand below code

Open BohuaCao opened this issue 1 year ago • 1 comments

Why did just become "sc=1" ? see below code: self.setJustProperty(streamId: sourceStream, newValue: "random") let just = self.getJustProperty(streamId: sourceStream) if let just = just { if just == "sc=1" { needToStream = true } else { needToStream = false } }

BohuaCao avatar Nov 26 '25 10:11 BohuaCao

I got it here, oh well I understand now and see below code: func myStreamingCounter() -> String { return "sc=\(_streamingCounter)" }

BohuaCao avatar Nov 26 '25 10:11 BohuaCao