Skip to content
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

Video stops 6hrs 16secs in #11102

Open
6 tasks done
ElspethThePict opened this issue May 25, 2024 · 6 comments
Open
6 tasks done

Video stops 6hrs 16secs in #11102

ElspethThePict opened this issue May 25, 2024 · 6 comments
Labels
bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up

Comments

@ElspethThePict
Copy link

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.0

Steps to reproduce the bug

Open a video of length of more that six hours and let it play from the beginning.

Expected behavior

Video should play as normal until the end.

Actual behavior

At 6 hours and about 16 seconds, the player will stop and produce a network error code. Pressing play on the video will resume it from the place it stopped.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=ixTb1xoqkvA
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB
  • Service: YouTube
  • Version: 0.27.0
  • OS: Linux Nokia/Sunfire_00EEA/SFI:12/SP1A.210812.016/00WW_1_410:user/release-keys 12 - 31
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:422)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:263)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.ContainerMediaChunk.load(ContainerMediaChunk.java:124)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)


Affected Android/Custom ROM version

Android 13

Affected device model

Nokia G22

Additional information

No response

@ElspethThePict ElspethThePict added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels May 25, 2024
@opusforlife2
Copy link
Collaborator

This time period is consistent? How many times have you tried?

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label May 31, 2024
@ElspethThePict
Copy link
Author

ElspethThePict commented May 31, 2024 via email

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label May 31, 2024
@opusforlife2

This comment was marked as outdated.

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label May 31, 2024
@AudricV
Copy link
Member

AudricV commented May 31, 2024

YouTube streams are only valid for 21540 seconds, so you reached the availability limit by playing them for this duration.

The validity of streams cannot be changed, but the player error handling can (and should) be changed.

@AudricV AudricV removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label May 31, 2024
@opusforlife2
Copy link
Collaborator

There are plenty of 10-hour videos. How does YT deal with those? Does it generate new stream links and seamlessly switch over?

@opusforlife2
Copy link
Collaborator

@AudricV Should this be turned into a feature request asking for a link refresh mechanism? Seems like the most straightforward solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up
Projects
None yet
Development

No branches or pull requests

3 participants