Class M3uPlaylistContainerProbe

    • Constructor Detail

      • M3uPlaylistContainerProbe

        public M3uPlaylistContainerProbe()
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MediaContainerProbe
        Returns:
        The name of this container
      • matchesHints

        public boolean matchesHints​(MediaContainerHints hints)
        Specified by:
        matchesHints in interface MediaContainerProbe
        Parameters:
        hints - The available hints about the possible container.
        Returns:
        True if the hints match the format this probe detects. Should always return false if all hints are null.
      • probe

        public MediaContainerDetectionResult probe​(AudioReference reference,
                                                   SeekableInputStream inputStream)
                                            throws java.io.IOException
        Description copied from interface: MediaContainerProbe
        Detect whether the file readable from the input stream is using this container and if this specific file uses a format and codec that is supported for playback.
        Specified by:
        probe in interface MediaContainerProbe
        Parameters:
        reference - Reference with an identifier to use in the returned audio track info
        inputStream - Input stream that contains the track file
        Returns:
        Returns result with audio track on supported format, result with unsupported reason set if this is the container that the file uses, but this specific file uses a format or codec that is not supported. Returns null in case this file does not appear to be using this container format.
        Throws:
        java.io.IOException - On read error.
      • createTrack

        public AudioTrack createTrack​(java.lang.String parameters,
                                      AudioTrackInfo trackInfo,
                                      SeekableInputStream inputStream)
        Description copied from interface: MediaContainerProbe
        Creates a new track for this container. The audio tracks created here are never used directly, but the playback is delegated to them. As such, they do not have to support cloning or have a source manager.
        Specified by:
        createTrack in interface MediaContainerProbe
        Parameters:
        parameters - Parameters specific to the probe.
        trackInfo - Track meta information
        inputStream - Input stream of the track file
        Returns:
        A new audio track