COSTouchVisualizer icon indicating copy to clipboard operation
COSTouchVisualizer copied to clipboard

Touches not shown when recording using QuickTime

Open marbetschar opened this issue 8 years ago • 11 comments

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 avatar Feb 01 '17 23:02 marbetschar

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.

marbetschar avatar Feb 04 '17 12:02 marbetschar

If this is working, should this be closed?

joeblau avatar Feb 05 '17 14:02 joeblau

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

marbetschar avatar Feb 05 '17 15:02 marbetschar

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

joeblau avatar Feb 05 '17 15:02 joeblau

😊 no worries 👍🏼

Any idea how the issue can be resolved?

Von meinem iPhone gesendet

Am 05.02.2017 um 16:07 schrieb Joe Blau [email protected]:

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.

marbetschar avatar Feb 05 '17 15:02 marbetschar

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

joeblau avatar Feb 05 '17 15:02 joeblau

😍

marbetschar avatar Feb 05 '17 16:02 marbetschar

Any news on this?

marbetschar avatar Feb 15 '17 09:02 marbetschar

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.

joeblau avatar Feb 15 '17 12:02 joeblau

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.

bhartsb avatar Mar 17 '17 21:03 bhartsb

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.

nhahn avatar Oct 04 '17 22:10 nhahn