asafkorem / COSTouchVisualizer

Visualize touches, gestures and long presses on your iPhone or iPad
https://www.conopsys.com/COSTouchVisualizer/
MIT License
960 stars 70 forks source link

Touches not shown when recording using QuickTime #27

Open marbetschar opened 7 years ago

marbetschar commented 7 years ago

I'm not able to see the touches during recording using QuickTime. The visualizer itself seems to work; at least, as soon as I set

func touchVisualizerWindowShouldAlwaysShowFingertip(_ window: COSTouchVisualizerWindow!) -> Bool {
  return true
}

Touches are shown correctly. But not, if this is set to return false. Tested with master as well as with 1.0.6 - both behave equally wrong. Running iOS 10.2 on an iPhone 6s.

marbetschar commented 7 years ago

Just tested this while being connected to AppleTV using AirPlay. In this setup, COSTouchVisualizer works as expected: It shows the touches while connected using AirPlay and hides them if not connected.

joeblau commented 7 years ago

If this is working, should this be closed?

marbetschar commented 7 years ago

Why? The issue is still open. Nothing has been fixed.

joeblau commented 7 years ago

Oh i see, sorry I misread the issue. definitely leave this open.

marbetschar commented 7 years ago

😊 no worries 👍🏼

Any idea how the issue can be resolved?

Von meinem iPhone gesendet

Am 05.02.2017 um 16:07 schrieb Joe Blau notifications@github.com:

Oh i see, sorry I misread the issue. definitely leave this open.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

joeblau commented 7 years ago

Not 100% sure. I haven't looked into it yet, but I'll try and take a look this week.

marbetschar commented 7 years ago

😍

marbetschar commented 7 years ago

Any news on this?

joeblau commented 7 years ago

Sorry, been super busy at work and working on a different OSS project that I didn't get a chance to look at this yet. It's still in the queue.

bhartsb commented 7 years ago

I have the same issue. Doesn't work with QT. However, I just went in to COSTouchVisualizerWindows.m anyScreenIsMirrored method and forced it to return YES.

nhahn commented 6 years ago

This hasn't been updated in a while, but you can do this:

- (BOOL)touchVisualizerWindowShouldAlwaysShowFingertip:(COSTouchVisualizerWindow *)window {
  AVAudioSessionRouteDescription * asRoute = [AVAudioSession sharedInstance].currentRoute;
  for(AVAudioSessionPortDescription * output in asRoute.outputs) {
    if ([output.portType isEqualToString: AVAudioSessionPortHDMI])
      return YES;
  }
  return NO;
}

Note, this was taken from another StackOverflow post. Ideally, you want this in the actual library instead of relying on the delegate.