-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unified player] stop current video from preloading when trying to play another one #4232
Comments
Why does it matter? The current way, you get less of a gap where you're left staring at the screen waiting for things to load. You get to enjoy the video until the new one is ready. |
@opusforlife2 it does matter because sometimes you don't enjoy the current playing video that's why you start playing another ? |
Pause it before playing another. 🤭 |
@opusforlife2 yeah that's an option but it doesn't solve the issue permenantly (the youtube app does solve it tho) |
The Youtube app uses proprietary code to directly access the Google servers and fetch videos. So they can do this super fast. Newpipe has to first obtain data from the website and then fetch the video details, which means we can never be as fast as Youtube at fetching videos. So there's no point in comparing the two. |
@opusforlife2 i know that and i think you missing the point! what am saying is not to fetch videos as fast as youtube. am saying have some mechanism to stop the ongoing video whenever another video's tumbnail is pressed |
My opinion is:
So let's wait until more people weigh in on this. |
What about an option (SwitchPreference) in preferences under "video and audio" regarding this behavior? |
@opusforlife2 I agree with all your comments here. Actually I didn't pause a video just because of the silent gap between streams. Without pause it feels like a kind of instant playback |
@avently Yep. I consider it a feature, not a bug. |
@avently @opusforlife2 i can't agree enough but i'm raising this issue because sometimes i have terrible internet (or for those using tor or vpn) considering the amount of time the app takes to fetsh the video, Retrieve the comments and recommended videos there's a huge amount of delay here ranging from a few seconds to minutes ! |
I don't think you'll get better results in terms of delay before next video if you just stop playback instead of loading in parallel. You can try it yourself and to compare with current behavior. Just stop playback via notification and than choose another video, compare the delay. Or pause and select another video |
I think the question here, @avently, is that does the current video stop loading when you open a new one? @panacist is concerned about the data usage. If the app keeps playing the already buffered video, but stops downloading more of it when you open another one, he should be fine. Am I correct, @panacist? |
@opusforlife2 yess!! thtat's exactly what am trying to say keep loading the actuall video when not needed takes a nontrivial amount of data memory and cache for those who have bad internet connection and old phones. |
@opusforlife2 the player always preloads some parts of a video and at some point of timeline IR doesn't load anything but at some point it loads next part. |
Hmmm. Is it possible to programmatically stop preloading when another video is opened? |
@opusforlife2 in fact it is (I tried it myself some hours ago) but I doubt it is good practice. |
From this line it looks like |
@vkay94 there is |
Try this apk. Should work fine. The toast will tell you when preload is enabled or disabled. You can also check with any network monitor. |
PR #4246 |
Didn't you test the apk, @panacist? |
@avently thank you for working on that really appriciate it ! |
The issue will be closed automatically when the PR is merged. |
Describe the feature you want
i think it would be nice to stop playing the actual video when choosing to play another not after it's fully loaded this way we won't be looking at the comments section of a video and another is being played on the background.
Is your feature request related to a problem? Please describe it
i don't know maybe?
Additional context
nothing..
How will you/everyone benefit from this feature?
every other app does this so newpipe should as well?
well i guess it's helpful because it's what everyone expects to happen !
The text was updated successfully, but these errors were encountered: