Skip to content

"Playback error" with Adaptive HLS stream #46

Description

@TheComputerNerd88

Attempting to play a video with the "Adaptive" video stream selected causes a "Playback error". I'm using TubeReplacer 1.0.4 on an iPad 2 running iOS 9.3.5, with version 1.4.0 of the YouTube app.
Image

I managed to compile the code and figured out a workaround for the issue. It appears that using the saved HLS stream file causes the playback error, specifically these lines:

} else {
stream = [NSClassFromString(@"YTStream") streamWithURL:[NSURL fileURLWithPath:mediaPath] format:1 encrypted:NO];
}

Changing the URL to [NSURL URLWithString:hlsStreamURL] fixes the issue. Of course, this bypasses the autodub audio track removal process in the code, but it works well enough other than that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions