/23rd.TwitchPotPlayer

Extensions for PotPlayer to watch Twitch streams without streamlinks or any crap.

Primary LanguageAngelScriptGNU General Public License v3.0GPL-3.0

Twitch Extension for PotPlayer

PotPlayer is a multimedia software player developed for the Microsoft Windows operating system.

PotPlayer plays Youtube videos quite native with title, description, subtitles and with the choice of quality. In May 2018 developers released first stable version with extensions support (written in AngelScript). So I wrote extensions for native playing Twitch streams, VODs and clips.

Credentials

Upd: if you want use the Twitch Extension without your own account, just leave a useOwnCredentials field in config.ini with 0 value.

Since 11 May 2020 Twitch begins to permanently require an authorization for all Twitch API endpoints. So I added an experimental own proxy endpoint to this extension. If you do not trust proxy, you can enter your credentials to the config.ini.

How to fill config.ini:

Installation

  • Just download this repository.
  • Unzip it.
  • Copy Media folder to c:\Program Files\DAUM\PotPlayer\Extension\ or {PotPlayer_Folder}\Extension\.

Twitch

/Media/PlayParse/MediaPlayParse - Twitch.as

This extension lets you open all twitch links, like:

After opening link you will see something like this.

image

  • Stream title is displayed in the player header.
  • In description you can see "{Title} | {Game} | {Channel}".
  • Video resolution can be changed in the quality menu in the right bottom corner.

The file config.ini adds a few display settings.

  • showBitrate=1 — shows bitrate in context menu (H). Valid values: 1 or 0.
  • showFPS=1 — shows fps in context menu (H). Valid values: 1 or 0.
  • gameInTitle=0 — shows game in title. Valid values: 1 or 0.
  • gameInContent=1 — shows game in content. Valid values: 1 or 0.
  • clientID= — takes clientID for API calls to the Twitch. It is highly recommended to get your own clientID on the Twitch and insert it here. If the value is empty, the default value is taken. If you insert an invalid value, the extension will not work.
  • oauthToken= — OAuth Token is needed when you want to watch "Subscriber-only" VODs and you are subscribed to this channel. Leave this field blank if you don't need this feature. Valid values: oauth:fboyX2pnceTQJdUaLqNMFceBPUi9TS. You can generate your own token from OAuth Password Generator.

/Media/UrlList/MediaUrlList - Twitch.as

This extension lets you see in File URL List all online channels that you follow. Unfortunately PotPlayer has no interface to login in Twitch yet. So you need to put your username in Media/UrlList/config.ini. After this open PotPlayer and press Ctrl + U, you will see following window.

image