Package com.onfido

Class LiveVideoManager


  • public class LiveVideoManager
    extends ResourceManager
    Manager class for the Live video resource type. Contains resource-specific methods for interacting with the API.
    • Constructor Detail

      • LiveVideoManager

        protected LiveVideoManager​(Config config,
                                   okhttp3.OkHttpClient client)
    • Method Detail

      • download

        public FileDownload download​(String liveVideoId)
                              throws OnfidoException
        Downloads a live video.
        Parameters:
        liveVideoId - the live video id
        Returns:
        the downloaded file as a FileDownload
        Throws:
        OnfidoException - the onfido exception
      • downloadFrame

        public FileDownload downloadFrame​(String liveVideoId)
                                   throws OnfidoException
        Instead of the whole video, a single frame can be downloaded.
        Parameters:
        liveVideoId - the live video id
        Returns:
        the downloaded file as a FileDownload
        Throws:
        OnfidoException - the onfido exception
      • list

        public List<LiveVideo> list​(String applicantId)
                             throws OnfidoException
        Lists all the live videos that belong to an applicant.
        Parameters:
        applicantId - the applicant id
        Returns:
        the list of LiveVideos
        Throws:
        OnfidoException - the onfido exception