java.lang.Object
uk.co.caprica.vlcj.player.base.Viewpoint
Viewpoint for 360 degree video.
Native viewpoint default field of view is 80 degrees.
-
Constructor Summary
ConstructorsConstructorDescriptionViewpoint(uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint) Create a viewpoint. -
Method Summary
Modifier and TypeMethodDescriptionfloatfov()Get the field of view.floatpitch()Get the pitch.voidrelease()Release the component and associated native resources.floatroll()Get the roll.voidsetFov(float fov) Set the field of view.voidsetPitch(float pitch) Set the pitch.voidsetRoll(float roll) Set the roll.voidsetYaw(float yaw) Set the yaw.uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_tGet the native viewpoint instance.floatyaw()Get the yaw.
-
Constructor Details
-
Viewpoint
public Viewpoint(uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint) Create a viewpoint.- Parameters:
viewpoint- native viewpoint instance
-
-
Method Details
-
yaw
public float yaw()Get the yaw.- Returns:
- yaw, degrees
-
setYaw
public void setYaw(float yaw) Set the yaw.- Parameters:
yaw- yaw, degrees
-
pitch
public float pitch()Get the pitch.- Returns:
- pitch
-
setPitch
public void setPitch(float pitch) Set the pitch.- Parameters:
pitch- , degrees
-
roll
public float roll()Get the roll.- Returns:
- roll, degrees
-
setRoll
public void setRoll(float roll) Set the roll.- Parameters:
roll- roll, degrees
-
fov
public float fov()Get the field of view.- Returns:
- field of view, degrees
-
setFov
public void setFov(float fov) Set the field of view.- Parameters:
fov- field of view, degrees
-
viewpoint
public uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t viewpoint()Get the native viewpoint instance.- Returns:
- viewpoint instance
-
release
public void release()Release the component and associated native resources.The component must no longer be used.
-