How send value json to UDP to change orientation only?   [SOLVED] - View the solution

Share your tips, tricks or get help with using GoPro VR Player!
no avatar
LeonBreen
Member
 
Topic author
Posts: 21
Likes: 1 post
Liked in: 0 post
Joined: Thu Mar 09, 2017 1:35 pm
Info

How send value json to UDP to change orientation only?

by LeonBreen » Thu Mar 30, 2017 11:35 am

How send value json to UDP to change orientation only? Without state, position

{"id":"ked","pitch":0.18779294192790985,"roll":0, "yaw":-0.92564457654953003} - it's not working

{"fov":90,"id":"ked","pitch":0.18779294192790985,"position":null, "roll":0,"state":1,"url": null,"yaw":-0.92564457654953003} - it's not working

If this is not possible, can you add it?

User avatar
lmartin
Kolor Team
 
Posts: 245
Likes: 0 post
Liked in: 9 posts
Joined: Mon Jul 01, 2013 8:04 am
Info

Re: How send value json to UDP to change orientation only?

by lmartin » Fri Mar 31, 2017 12:50 pm

Yes you can, just turn off URL decoding in Slave configuration : http://www.kolor.com/wiki-en/action/vie ... tion#Slave

no avatar
LeonBreen
Member
 
Topic author
Posts: 21
Likes: 1 post
Liked in: 0 post
Joined: Thu Mar 09, 2017 1:35 pm
Info

Re: How send value json to UDP to change orientation only?

by LeonBreen » Fri Mar 31, 2017 7:26 pm

Yes, I'm off, but if I send, then the video is reset to the beginning.

I have the settings: Slave, Url decoding off.

Maybe I do not have the right request? Please send an example to just change the position of the head, without changing the time of video and video state.

It seems that in the Url Decode off mode, the Position parameter is still read.

User avatar
lmartin
Kolor Team
 
Posts: 245
Likes: 0 post
Liked in: 9 posts
Joined: Mon Jul 01, 2013 8:04 am
Info

Re: How send value json to UDP to change orientation only?  [SOLVED]

by lmartin » Wed Apr 05, 2017 10:07 am

Sorry I misunderstood, here is a hack to do what you want :
- Slave default config (Absolute Url decoding and Absolute Camera orientation)
- Send empty url in your UDP message : {"id":"ked", ... , "url":""}
Your slave instance should only take care of camera parameters.

no avatar
LeonBreen
Member
 
Topic author
Posts: 21
Likes: 1 post
Liked in: 0 post
Joined: Thu Mar 09, 2017 1:35 pm
Info

Re: How send value json to UDP to change orientation only?

by LeonBreen » Fri Apr 07, 2017 10:13 am

Thanks. It's work.


Who is online

Users browsing this forum: No registered users and 1 guest