Class YoutubeMpegStreamAudioTrack

  • All Implemented Interfaces:
    AudioItem, AudioTrack, InternalAudioTrack, AudioFrameProvider

    public class YoutubeMpegStreamAudioTrack
    extends MpegAudioTrack
    YouTube segmented MPEG stream track. The base URL always gives the latest chunk. Every chunk contains the current sequence number in it, which is used to get the sequence number of the next segment. This is repeated until YouTube responds to a segment request with 204.
    • Constructor Detail

      • YoutubeMpegStreamAudioTrack

        public YoutubeMpegStreamAudioTrack​(AudioTrackInfo trackInfo,
                                           HttpInterface httpInterface,
                                           java.net.URI signedUrl)
        Parameters:
        trackInfo - Track info
        httpInterface - HTTP interface to use for loading segments
        signedUrl - URI of the base stream with signature resolved