Class YoutubeSignatureCipherManager

    • Constructor Detail

      • YoutubeSignatureCipherManager

        public YoutubeSignatureCipherManager()
        Create a new signature cipher manager
    • Method Detail

      • resolveFormatUrl

        public java.net.URI resolveFormatUrl​(HttpInterface httpInterface,
                                             java.lang.String playerScript,
                                             YoutubeTrackFormat format)
                                      throws java.io.IOException
        Produces a valid playback URL for the specified track
        Specified by:
        resolveFormatUrl in interface YoutubeSignatureResolver
        Parameters:
        httpInterface - HTTP interface to use
        playerScript - Address of the script which is used to decipher signatures
        format - The track for which to get the URL
        Returns:
        Valid playback URL
        Throws:
        java.io.IOException - On network IO error
      • resolveDashUrl

        public java.lang.String resolveDashUrl​(HttpInterface httpInterface,
                                               java.lang.String playerScript,
                                               java.lang.String dashUrl)
                                        throws java.io.IOException
        Produces a valid dash XML URL from the possibly ciphered URL.
        Specified by:
        resolveDashUrl in interface YoutubeSignatureResolver
        Parameters:
        httpInterface - HTTP interface instance to use
        playerScript - Address of the script which is used to decipher signatures
        dashUrl - URL of the dash XML, possibly with a ciphered signature
        Returns:
        Valid dash XML URL
        Throws:
        java.io.IOException - On network IO error