com.supermap.ar.areffect.record

Class AREffectViewRecorder

  • All Implemented Interfaces:
    EffectView.OnUpdateListener


    public class AREffectViewRecorder
    extends EffectViewRecorder
    implements EffectView.OnUpdateListener
    Effects view recorder

    Record AR view and record real-time attitude data

    SampleCode:
         ...
         private Button button;
         private boolean recordStatus = false;
         ...
            EffectViewRecorder recorder =
                     AREffectViewRecorder
                             .builder(efView)
                             .setFolderPath(SDCARD + "/00recorder")
                             .build();
    
             String fileName = "TestFile";
             recorder.setVideoName(fileName + count);
             recorder.prepare();
    
             button = findViewById(R.id.record_ctrl_btn);
             button.setOnClickListener(new View.OnClickListener() {
    Since:
    10.1.2
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static AREffectViewRecorder.Builder builder(AREffectView arView)
      creat Builder
      void onUpdate()
      Use linear interpolation to optimize the parameters of CSV files and generate new CSV files
      void prepare()
      Recording preparation Each preparation action will generate a new video name based on the timestamp, After the start->stop command is executed next time, the recording result is saved to the same name.
      void reset()
      reset Enter INITIAL directly in PREPARED or RECORDING state
      void start()
      Start recording State entered RECORDING Start recording the video Note: If the video folder path is not set, return false If the video folder path is set, the file name is not set
      void stop()
      stop Status Enter the ready state.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onUpdate

        public void onUpdate()
        Use linear interpolation to optimize the parameters of CSV files and generate new CSV files
        Overrides:
        onUpdate in class EffectViewRecorder
        Parameters:
        sourceCsvFilePath - CSV Specifies the absolute path of the source file
        destCsvFilePath - Specifies the absolute path of the CSV target file
      • prepare

        public void prepare()
        Recording preparation Each preparation action will generate a new video name based on the timestamp, After the start->stop command is executed next time, the recording result is saved to the same name.
        Overrides:
        prepare in class EffectViewRecorder
      • start

        public void start()
        Start recording State entered RECORDING Start recording the video Note: If the video folder path is not set, return false If the video folder path is set, the file name is not set
        Overrides:
        start in class EffectViewRecorder
      • stop

        public void stop()
        stop

        Status Enter the ready state. PREPARED

        Overrides:
        stop in class EffectViewRecorder
      • reset

        public void reset()
        reset

        Enter INITIAL directly in PREPARED or RECORDING state

        Overrides:
        reset in class EffectViewRecorder