Class VideoImpl

  • All Implemented Interfaces:
    Video

    class VideoImpl
    extends java.lang.Object
    implements Video
    • Constructor Detail

      • VideoImpl

        VideoImpl​(PageImpl page)
    • Method Detail

      • delete

        public void delete()
        Description copied from interface: Video
        Deletes the video file. Will wait for the video to finish if necessary.
        Specified by:
        delete in interface Video
      • path

        public java.nio.file.Path path()
        Description copied from interface: Video
        Returns the file system path this video will be recorded to. The video is guaranteed to be written to the filesystem upon closing the browser context. This method throws when connected remotely.
        Specified by:
        path in interface Video
      • saveAs

        public void saveAs​(java.nio.file.Path path)
        Description copied from interface: Video
        Saves the video to a user-specified path. It is safe to call this method while the video is still in progress, or after the page has closed. This method waits until the page is closed and the video is fully saved.
        Specified by:
        saveAs in interface Video
        Parameters:
        path - Path where the video should be saved.