- 12/09/2019 at 14:51 #11988Tobias LunteParticipant
I’m trying to subscribe to the GazePoints from my 4C inside a WPF application.
This works when I simply try a console app, so the tracker is capable of providing the stream. It also worked last year when I used an EyeX (though I don’t have that one on hand anymore), so there doesn’t seem to be a general conflict between the GazePointDataStream and WPF.
However, when trying to subscribe to GazePoints from within WPF, the callback action is never called. As an alternative, I also tried to Subscribe with a custom IObserver, but that one also doesn’t call any handlers (neither OnNext, nor OnError or OnCompleted).
Has anyone encountered this problem before or has an idea on how to solve it?
(I’m using Tobii.Interaction v0.7.3 which I believe to be the correct package for interactive use and which worked with the EyeX last year, though it’s been 2 years since the last update.)
Title=”MainWindow” Height=”450″ Width=”800″>
public partial class MainWindow : Window
var host = new Host();
Debug.Text = “B”;
var gazeStream = host.Streams.CreateGazePointDataStream();
Debug.Text = “C”;
gazeStream.GazePoint((X, Y, _) =>
Debug.Text = “E”;
Debug.Text = X.ToString(); ;
Debug.Text = “D”;
}13/09/2019 at 09:38 #11989Grant [Tobii]Keymaster
Hi @tobl and thanks for your query. You will be pleased to know that we have produced a number of samples illustrating how to implement gaze aware controls effectively within WPF forms which you can download freely @ https://github.com/Tobii/interaction-samples
If you check out the ‘WPFSamples’ , this should hopefully illustrate for you the correct methodology for getting your project up and running!
Please try and do let us know if we can be of any further assistance. Best Wishes.
If may also interest you to know that we have a newer Interaction API currently in Beta @ https://developer.tobii.com/consumer-eye-trackers-interaction-library/
which has a more lightweight and simpler interface.
- You must be logged in to reply to this topic.