We try to display a live stream of an rtsp camera within a WPF application. Performance is critical in our application, and we try to display a directX window within the WPF application.
My code looks as following:
fn =@"rtsp://192.168.4.104:554/stream0";//Camera urlvar player =Player.Create(fn);
The constructor of the player looks as following:
and the play method of the player looks as following:
Remember that the form data member is of type:
The result when I run the program is the following SharpDX window that indeed displays the live stream of the rtsp camera:
Now, what I want to do is to assimilate the directX (SharpDX.Windows.RenderForm) within my WPF appication. I'm looking forward to your suggestions. Thank you!