Class M3uStreamSegmentUrlProvider

    • Constructor Detail

      • M3uStreamSegmentUrlProvider

        protected M3uStreamSegmentUrlProvider()
      • M3uStreamSegmentUrlProvider

        protected M3uStreamSegmentUrlProvider​(java.lang.String originUrl)
    • Method Detail

      • createSegmentUrl

        protected static java.lang.String createSegmentUrl​(java.lang.String playlistUrl,
                                                           java.lang.String segmentName)
      • getQualityFromM3uDirective

        protected abstract java.lang.String getQualityFromM3uDirective​(ExtendedM3uParser.Line directiveLine)
        If applicable, extracts the quality information from the M3U directive which describes one stream in the root M3U.
        Parameters:
        directiveLine - Directive line with arguments.
        Returns:
        The quality name extracted from the directive line.
      • fetchSegmentPlaylistUrl

        protected abstract java.lang.String fetchSegmentPlaylistUrl​(HttpInterface httpInterface)
                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getNextSegmentUrl

        protected java.lang.String getNextSegmentUrl​(HttpInterface httpInterface)
        Logic for getting the URL for the next segment.
        Parameters:
        httpInterface - HTTP interface to use for any requests required to perform to find the segment URL.
        Returns:
        The direct stream URL of the next segment.
      • getNextSegmentStream

        public java.io.InputStream getNextSegmentStream​(HttpInterface httpInterface)
        Fetches the input stream for the next segment in the M3U stream.
        Parameters:
        httpInterface - HTTP interface to use for any requests required to perform to find the segment URL.
        Returns:
        Input stream of the next segment.
      • createSegmentGetRequest

        protected abstract org.apache.http.client.methods.HttpUriRequest createSegmentGetRequest​(java.lang.String url)
      • isAbsoluteUrl

        protected boolean isAbsoluteUrl​(java.lang.String url)
      • getAbsoluteUrl

        protected java.lang.String getAbsoluteUrl​(java.lang.String url)