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

Media URL extraction may timeout on slow/unreliable connections #26

Closed
BinToss opened this issue Dec 31, 2020 · 5 comments
Closed

Media URL extraction may timeout on slow/unreliable connections #26

BinToss opened this issue Dec 31, 2020 · 5 comments

Comments

@BinToss
Copy link
Contributor

BinToss commented Dec 31, 2020

Livestreams are working about as well as they do in a web-browser, but VODs don't work at all.

Internet Quality: piss poor. Rarely above 20mbps, but usually less than 3mbps. When combined with an average latency range of 600ms-6000ms, internet service is often slow and unreliable. Connections will drop constantly. Don't buy HughesNet.

This VOD streams as well as it can in a browser over inconsistent, frequently-throttled satellite internet and the same VOD fails to start streaming in PotPlayer.

TwitchPotPlayer can still resolve livestream and VOD URLs to stream info/title and as well as play livestreams.

This is while using my personal credentials in TPP's PlayParse and UrlList configs.

@23rd
Copy link
Collaborator

23rd commented Jan 2, 2021

Hmm, your link works fine in TwitchPotPlayer for me. Do you have another links that don't work?

@23rd
Copy link
Collaborator

23rd commented Jan 3, 2021

Okay, I have updated the play parse API, it should be better now.

@BinToss
Copy link
Contributor Author

BinToss commented Jan 10, 2021 via email

@23rd 23rd closed this as completed May 13, 2021
@BinToss
Copy link
Contributor Author

BinToss commented Jul 26, 2021

Bad news.
VODs' URLs such as https://www.twitch.tv/videos/1096263340 fail nearly immediately via TwitchPotPlayer.
Media URLs (e.g. https://usher.ttvnw.net/vod/1096263340.m3u8?{params}) extracted by external software such as Twitch To PotPlayer and SVP4's SVPTube extension (which leverages the youtube_dl library) still work.

1096263340.m3u8
?allow_source=true
&p=392406
&play_session_id=<PLAY_SESSION_ID>
&player_backend=mediaplayer
&playlist_include_framerate=<true/false>
&reassignments_supported=<true/false>
&sig=<char[40] SIG>
&supported_codecs=avc1
&token={
  "authorization":{"forbidden":false,"reason":""},
  "chansub":{ "restricted_bitrates":  [] },
  "device_id":<string DEVICE_ID>,
  "expires":1627410013,
  "https_required":true,
  "privileged":false,
  "user_id":<USER_ID>,
  "version":2,
  "vod_id":1096263340
}
&cdm=wv&
player_version=1.4.0

@BinToss BinToss changed the title Twitch VODs appear to no longer work. Possibly an edge case due to a bad ISP. Media URL extraction may timeout on slow/unreliable connections Aug 26, 2021
@BinToss
Copy link
Contributor Author

BinToss commented Aug 26, 2021

After cloning the repo today and updating the files in PotPlayer's extensions folder.

  • TwitchPotPlayer's URL parsing/extraction still times out when extracting media URLs from VOD URL.
  • Live channel URLs are still more reliable than VOD URLs.
  • Direct media links extracted by Twitch to PotPlayer browser extension, SVPTube, and JDownloader work without issue.

So, if the timeout cannot be changed by the angelscript extension, the fault lies in whatever PotPlayer uses internally to extract media URLs from web pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants