MCPcopy Create free account
hub / github.com/danielpaulus/quicktime_video_hack / deactivate

Function deactivate

main.go:331–343  ·  view source on GitHub ↗
(device screencapture.IosDevice)

Source from the content-addressed store, hash-verified

329}
330
331func deactivate(device screencapture.IosDevice) {
332 log.Debugf("Disabling device: %v", device)
333 var err error
334 device, err = screencapture.DisableQTConfig(device)
335 if err != nil {
336 printErrJSON(err, "Error disabling QT config")
337 return
338 }
339
340 printJSON(map[string]interface{}{
341 "device_activated": device.DetailsMap(),
342 })
343}
344
345func record(h264FilePath string, wavFilePath string, device screencapture.IosDevice) {
346 log.Debugf("Writing video output to:'%s' and audio to: %s", h264FilePath, wavFilePath)

Callers 1

mainFunction · 0.85

Calls 4

DisableQTConfigFunction · 0.92
printErrJSONFunction · 0.85
printJSONFunction · 0.85
DetailsMapMethod · 0.80

Tested by

no test coverage detected