Package com.opentok

Class ArchiveProperties.Builder

  • Enclosing class:
    ArchiveProperties

    public static class ArchiveProperties.Builder
    extends java.lang.Object
    Used to create an ArchiveProperties object.
    See Also:
    ArchiveProperties
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public ArchiveProperties.Builder name​(java.lang.String name)
        Sets a name for the archive.
        Parameters:
        name - The name of the archive. You can use this name to identify the archive. It is a property of the Archive object, and it is a property of archive-related events in the OpenTok JavaScript SDK.
        Returns:
        The ArchiveProperties.Builder object with the name setting.
      • resolution

        public ArchiveProperties.Builder resolution​(java.lang.String resolution)
        Sets the resolution of the archive.
        Parameters:
        resolution - The resolution of the archive, either "640x480" (SD, the default) or "1280x720" (HD). This property only applies to composed archives. If you set this and set the outputMode property to "individual", the call in the API method results in an error.
        Returns:
        The ArchiveProperties.Builder object with the resolution setting.
      • hasAudio

        public ArchiveProperties.Builder hasAudio​(boolean hasAudio)
        Call this method to include an audio track (true, the default) or not false).
        Parameters:
        hasAudio - Whether the archive will include an audio track.
        Returns:
        The ArchiveProperties.Builder object with the hasAudio setting.
      • hasVideo

        public ArchiveProperties.Builder hasVideo​(boolean hasVideo)
        Call this method to include an video track (true, the default) or not false).
        Parameters:
        hasVideo - Whether the archive will include a video track.
        Returns:
        The ArchiveProperties.Builder object with the hasVideo setting.
      • multiArchiveTag

        public ArchiveProperties.Builder multiArchiveTag​(java.lang.String multiArchiveTag)
        Set this to support recording multiple archives for the same session simultaneously. Set this to a unique string for each simultaneous archive of an ongoing session. You must also set this option when manually starting an archive that is automatically archived. If you do not specify a unique multiArchiveTag, you can only record one archive at a time for a given session. See Simultaneous Archives documentation.
        Parameters:
        multiArchiveTag - A unique archive tag.
        Returns:
        The ArchiveProperties.Builder object with the MultiArchiveTag setting.
      • build

        public ArchiveProperties build()
        Builds the ArchiveProperties object.
        Returns:
        The ArchiveProperties object.