GoPro.Hero library runs on a console application and freezes on window shapes

I am trying to control a GoPro Hero 3 camera. I found a library on the Internet: https://github.com/r1pper/GoPro.Hero and from what I read it is a good library. But when I try to create a connection to the camera, my window-making applications completely freeze when my console applications (for the test) just connect. I think this has something to do with async tasks, what am I doing wrong?

This line creates a connection to the camera and sends the command:

var camera = Camera.Create<Hero3Camera>("10.5.5.9");
+4
source share
1 answer

, HttpRequestMode

GoPro.Hero.Configuration.CommandRequestMode = GoPro.Hero.Configuration.HttpRequestMode.Sync

:

CommandRequest , Create CreateAsync, Task.Wait , ( ), Configuration.CommandRequestMode Sync, SendRequestSynchronous, .

+5

Source: https://habr.com/ru/post/1531120/


All Articles