Interface ISessionVideoRecorder

  • All Superinterfaces:
    androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.LifecycleObserver
    All Known Implementing Classes:
    SessionVideoRecorder

    public interface ISessionVideoRecorder
    extends androidx.lifecycle.DefaultLifecycleObserver
    Interface for recording session videos
    Since:
    2.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<android.view.Surface> getSurface()
      Get surface
      java.util.Optional<java.io.File> getVideoFile()
      Get a file in which to save the video
      void setup​(android.util.Size videoSize, int rotationDegrees)
      Set up the video recorder
      void start()
      Start recording video
      void stop()
      Stop recording video
      • Methods inherited from interface androidx.lifecycle.DefaultLifecycleObserver

        onCreate, onDestroy, onPause, onResume, onStart, onStop
    • Method Detail

      • getSurface

        java.util.Optional<android.view.Surface> getSurface()
        Get surface
        Returns:
        Surface on which to render video
        Since:
        2.0.0
      • setup

        void setup​(android.util.Size videoSize,
                   int rotationDegrees)
        Set up the video recorder
        Parameters:
        videoSize - Size of the raw video frames
        rotationDegrees - Rotation of the video in degrees
        Since:
        2.0.0
      • start

        void start()
        Start recording video
        Since:
        2.0.0
      • stop

        void stop()
        Stop recording video
        Since:
        2.0.0
      • getVideoFile

        java.util.Optional<java.io.File> getVideoFile()
        Get a file in which to save the video
        Returns:
        File in which to save the video
        Since:
        2.0.0