yuliskov / SmartTube

SmartTube - an advanced player for set-top boxes and tvs running Android OS
https://www.patreon.com/smarttube
Other
18.39k stars 1.03k forks source link

Non-Premium or not signed-in YouTube User Video Playback Issue on SmartTube SDK, Response code 403 #3648

Open raa-ju opened 1 month ago

raa-ju commented 1 month ago

I have identified an issue where non-premium or not signed-in YouTube users are unable to play videos on the SmartTube SDK. However the premium users are able to play videos using smartTube SDK. The problem seems to stem from an authentication check that prevents non-premium users from accessing video playback. Below is a detailed description of the issue, a possible workaround, and a method to bypass this check. Please note that the provided solutions may not fully resolve the issue and additional steps may be required.

Steps to Reproduce:

Use a non-premium or not signed-in YouTube account. Attempt to play a video on an application using the SmartTube SDK. Observe that the video does not play as expected for non-premium or not signed-in users. Expected Behavior: Non-premium and not signed-in YouTube users should be able to play videos without any issues.

Actual Behavior: Non-premium and not signed-in YouTube users are unable to play videos as expected. The videos either do not load or show an error message.

Possible Workaround: A temporary workaround has been identified, which involves modifying the user agent string to mimic a premium YouTube account. Need to test it though.

Bypass Instructions: For a more permanent solution, consider bypassing the Premium and sign-in checks by intercepting the authentication request and modifying the response. This approach involves advanced techniques such as network interception and response modification.

Steps to Bypass:

Note: These workarounds and bypass instructions may not fully resolve the issue for all users. Additional steps and further investigation may be required to address the underlying problem completely.

Patraputt commented 1 month ago

Contents not playing, showing 403 error. Only live feeds working.

raa-ju commented 1 month ago

Premium users can play all videos, I tested with a premium youtube user and it worked for all type of videos using smartTube

ArloG3300 commented 1 month ago

Use a non-premium or not signed-in YouTube account. Attempt to play a video on an application using the SmartTube SDK. Observe that the video does not play as expected for non-premium or not signed-in users.

**I've signed out. And then further cleared cache and data in ST before unistalling and installing it again. Remained signed out. I'm a non-premium user. Nothing plays still with the 403 error. In the case of a Dolby Vision video I do see the icon in the upper right of my screen. Capturing network traffic, ok I'm capable of that. Scripting is another thing. Hopefully the devs. can work a solution**_

Latest Fire TV Cube.

****

ACheshirov commented 1 month ago

Yeah, I got the Premium subscription because I have a free trial month. And just like that, magic happened. SmartTube started loading videos without even needing a restart...