Class IOSStartScreenRecordingOptions

    • Constructor Detail

      • IOSStartScreenRecordingOptions

        public IOSStartScreenRecordingOptions()
    • Method Detail

      • withVideoType

        public IOSStartScreenRecordingOptions withVideoType​(java.lang.String videoType)
        The video codec type used for encoding of the recorded screen capture. Execute `ffmpeg -codecs` in the terminal to see the list of supported video codecs. 'mjpeg' by default.
        Parameters:
        videoType - one of available video codec names, for example 'libx264'.
        Returns:
        self instance for chaining.
        Since:
        Appium 1.10.0
      • withFps

        public IOSStartScreenRecordingOptions withFps​(int fps)
        The Frames Per Second rate of the recorded video. Defaults to 10.
        Parameters:
        fps - frames per second value in range 1..60.
        Returns:
        self instance for chaining.
        Since:
        Appium 1.10.0
      • withVideoScale

        public IOSStartScreenRecordingOptions withVideoScale​(java.lang.String videoScale)
        The scaling value to apply. Read https://trac.ffmpeg.org/wiki/Scaling for possible values. No scale is applied by default. If filters are set then the scale setting is effectively ignored.
        Parameters:
        videoScale - ffmpeg-compatible scale format specifier.
        Returns:
        self instance for chaining.
        Since:
        Appium 1.10.0
      • withTimeLimit

        public IOSStartScreenRecordingOptions withTimeLimit​(java.time.Duration timeLimit)
        The maximum recording time. The default value is 180 seconds (3 minutes). The maximum value is 30 minutes. Setting values greater than this or less than zero will cause an exception. The minimum time resolution unit is one second.
        Overrides:
        withTimeLimit in class BaseStartScreenRecordingOptions<IOSStartScreenRecordingOptions>
        Parameters:
        timeLimit - The actual time limit of the recorded video.
        Returns:
        self instance for chaining.
      • withVideoFilters

        public IOSStartScreenRecordingOptions withVideoFilters​(java.lang.String filters)
        The FFMPEG video filters to apply. These filters allow to scale, flip, rotate and do many other useful transformations on the source video stream. The format of the property must comply with https://ffmpeg.org/ffmpeg-filters.html.
        Parameters:
        filters - One or more filters to apply to the resulting video stream, for example "transpose=1" to rotate the resulting video 90 degrees clockwise.
        Returns:
        self instance for chaining.
        Since:
        Appium 1.15