Skip to content

Latest commit

 

History

History
362 lines (286 loc) · 21.3 KB

plugins.md

File metadata and controls

362 lines (286 loc) · 21.3 KB

Service plugins

WizeStream can install external streaming-service implementations from HTTPS JSON repositories. It supports the PipePipe plugin contract and a separate native WizeStream contract. Each repository entry points to a signed .ppp archive containing the service's compiled code. JSON supplies metadata and configuration; website-specific extraction is implemented in that code.

Plugin support requires WizeStream 1.52.0 or newer and is included in the reviewed 1.52.2 release. This guide was checked against its source commit 983d8acb on 25 November 2026. External plugins require Android 7/API 24 or newer; the app and built-in services remain available on Android 6/API 23.

The new source actions below are Unreleased additions to that baseline; they are not included in 1.52.2.

Install and manage plugins

  1. Open Settings → Plugins and enable Allow plugins.
  2. Read the explanation of executable plugins and enable the feature if you trust the publishers whose code you intend to install.
  3. Browse the included WizeStream Plugins catalog. Use Add repository for another publisher's HTTPS index.json, or use the optional community-repository shortcut.
  4. Choose an available plugin, confirm its repository, and install it.
  5. Restart WizeStream when prompted. The service becomes available through normal service selection.

The default catalog is maintained in WizeStream-Plugins. Its JSON URL is:

https://raw.githubusercontent.com/wizdom13/WizeStream-Plugins/main/index.json

This replaces the former PipePipe built-in catalog. The default is supplied by the app; updating WizeStream changes it without reinstalling plugins or changing their publisher pins. On an earlier build that already supports plugins, add the JSON URL with Add repository. Released builds through 1.52.2 require the raw JSON URL. The Unreleased source actions also recognize supported project, release, and browser catalog links.

An optional publisher repository for Twitch is:

https://github.com/MohrJonas/TwitchPipePipePlugin/releases/download/repo/index.json

The publisher repository and community catalog are maintained outside WizeStream. Adding an extra repository is an explicit user action; WizeStream does not silently subscribe to a publisher because a saved playlist references its service.

Catalog entries for services that WizeStream already provides display already built into WizeStream and cannot be installed as replacements. YouTube, SoundCloud, media.ccc.de, PeerTube, Bandcamp, BiliBili, NicoNico, BitChute, Rumble, Odysee, and Vimeo keep their existing built-in identities.

The Installed section provides settings, updates, and uninstall actions. Refresh repositories reloads available versions. Where multiple configured repositories list the same plugin and publisher, WizeStream displays the highest compatible version once. Repository order resolves equal version numbers. A newer version with an unsupported API or Android requirement does not hide an older compatible version. The WizeStream catalog participates in the same selection rules.

Installation, updates, disabling, and uninstalling take effect after a process restart. Saved subscriptions, history, and playlists are preserved when a plugin is unavailable. Follow the missing-service message to restore its plugin; removing the package does not delete the service's saved content.

Plugin packages, repository URLs, publisher pins, and profile-specific plugin settings currently remain local to the device; full backups and Device Sync do not transfer those files. Reinstall the same plugin and reconfigure its settings on the destination device to use restored service records. A full backup can restore the master enable switch, but that does not install any code.

Unreleased source actions

With Allow plugins enabled, the Plugins screen provides these actions near the top. They require Android 7/API 24 or newer and parent access when Kids Mode protects settings.

Action What to select
Add repository Enter a public HTTPS catalog or supported GitHub/GitLab project, release, or catalog link, then choose the repository to save. Choose From storage in this dialog to import an index.json file.
Install from project or URL Enter a supported public project, release, catalog, or .ppp URL and choose a signed plugin from the discovered catalog entries. This installs an individual plugin without adding its repository to the configured list.
Install from file Select a .ppp package from storage. Supply its companion index.json, or use a matching signed entry from a repository already loaded on this screen. This also installs an individual plugin without adding a repository.

Package-file matching uses the catalogs already loaded on the Plugins screen. Refresh the repositories first or supply the companion catalog if the matching entry is unavailable.

Before saving an unofficial repository, WizeStream names the source and asks you to accept a warning. The optional community-repository shortcut uses the same warning. Every direct project, URL, or storage installation also requires source confirmation. The warning explains that plugins run with WizeStream's permissions and can access its data, including saved logins. Canceling leaves the configured repositories and installed plugins unchanged. The global Allow plugins choice does not replace these source confirmations.

Project discovery supports public projects hosted on github.com and gitlab.com, including GitLab projects inside nested groups. You can use a project root, a supported release page or release asset, or a browser/raw link to a catalog. WizeStream looks for published catalogs in the project and its releases; a direct .ppp URL needs a corresponding catalog that can be found alongside the package or through its project/release. Private projects, authenticated downloads, and self-hosted GitLab project discovery are unsupported. Discovery examines a limited set of published releases; provide the exact catalog link if an older release is not found.

A project must publish compiled .ppp packages and signed catalog entries. WizeStream does not build source-code repositories, and a .ppp filename alone does not establish its publisher or signature. Local and remote installs retain the same digest, signature, publisher-key, version, compatibility, and built-in-service checks. Keep a downloaded package and its matching catalog together when transferring them to another device.

An imported local repository is a snapshot saved on this device. Refresh repositories rereads that snapshot; it does not follow later changes to the original file or subscribe to a remote repository. Import a newer catalog to discover its updated entries, and select the newer package when installing from storage. Every entry from a local catalog requires you to select the matching .ppp file. Package URLs inside that imported JSON are metadata for this path; WizeStream does not download them, even when they use HTTPS. To receive updates for a plugin installed directly, add its publisher's repository separately or repeat the direct installation with a newer signed version. Restart when prompted.

Android support

External plugins require Android 7/API 24 or newer. WizeStream's built-in services remain available on Android 6/API 23. A package can declare a higher minAndroidSdk; the catalog and installer enforce that requirement.

PipePipe packages use a separate, reproducible API-24 Java utility runtime bundled by WizeStream. This supplies their platform-stream helpers while the app retains its Android-6 runtime. Shared extractor types, date/time values, and serializable collection wrappers remain owned by the host. This compatibility path does not cover every Java library API: LocalDate.datesUntil(...), static methods on shared java.time.chrono interfaces, and custom implementations relying on their default methods have different compiled signatures or locations. PipePipe packages using those APIs need a native WizeStream build.

Native WizeStream plugins use the host's own API-23 DEX compiler and NIO desugaring profile, so their SDK interfaces and date/time APIs match the app. Their manifest still requires Android 7 or newer. The compiler profile and the device requirement are separate: keep the template's compiler settings and raise minAndroidSdk when a service needs a newer Android version.

One older published Twitch archive requires special handling: version code 4, SHA-256 f44371de1ec69c32fbf37cd61f5ce00d2b676005233437b0d1fad3fdb1263681, calls an Android API added in Android 13/API 33. WizeStream blocks those exact bytes on older systems. The publisher's version code 5 provides a fallback for older Android versions. If the community catalog still lists version 4, add the publisher repository above to obtain its newer compatible release. This exception does not change the minimum for other plugins.

Profiles and optional authentication

Plugin packages and repository configuration belong to the device. A loaded service receives preferences bound to the profile that created it. Manifest settings and optional login cookies are stored separately for each profile. When plugins are loaded, changing profiles restarts the app process so cached plugin configuration cannot carry into the next profile.

Plugins declaring cookie authentication expose an optional Login cookies setting and Clear login cookies action. The setting explains the login URL and required cookie name. Credentials are entered as a cookie header, remain hidden in the settings summary, and require a restart after changes. This version does not share the app's WebView cookie store with plugins. An account is not required for installing a plugin or for services that support public access.

Deleting a profile clears its plugin preferences. Objects left over from that profile cannot recreate those preferences. Plugin code still runs in the app process with app permissions: profile-aware APIs provide the supported storage behavior, not a sandbox for untrusted code.

Package and repository format

File Role
index.json Repository name and plugin entries, including download URLs, versions, requirements, SHA-256 digests, signatures, and public keys.
.ppp ZIP containing the plugin's classes.dex, JVM .class files, resources, and root manifest.
plugin.json Plugin identity, entry class, host/API requirement, optional settings and display metadata.

Network downloads and every redirect must use HTTPS. WizeStream verifies the complete package's SHA-256 digest and an Ed25519 signature over the raw 32 digest bytes. The catalog stores the signature and raw 32-byte public key as Base64. The installed package is made read-only and its receipt is checked again before loading.

The publisher key is pinned at first installation. Updates must retain that key and use a higher versionCode. Uninstalling preserves the pin, so it does not authorize a different publisher to take over the same plugin ID. Publisher-key rotation is not supported by this implementation; keep a secure backup of the original signing pair.

Duplicate prevention checks known official plugin identities and normalized built-in names before installation. The runtime registry also rejects duplicate IDs, normalized names, and equivalent base URLs. A plugin should add a distinct service instead of replacing a built-in provider.

Choose an authoring contract

PipePipe-compatible plugin Native WizeStream plugin
Manifest host Omitted, or "pipepipe" Explicitly "wizestream"
Manifest apiVersion "1.0" or "1.1" "2.0"
Entry interface PipePipePlugin WizeStreamPlugin
Context PluginContext WizeStreamPluginContext
Extra host facilities Shared plugin preferences Shared preferences, host version, and a captured UUID profile ID
Starting point Official PipePipe template WizeStream template

Native API 2.0 is deliberately identified separately. A current PipePipe host rejects its major version, and WizeStream requires the explicit native host declaration before treating API 2.0 as its own. An undeclared future PipePipe API 2.x is not accidentally accepted as WizeStream's API.

WizeStream's compatible contract preserves the PipePipe Java interfaces and extractor-facing signatures. A package's declared API version is still only part of compatibility: the Android version, shared library APIs, extractor behavior, and the author's implementation also matter. Use an actual packaged plugin test instead of assuming a shared package name proves compatibility.

Build a native WizeStream plugin

The plugin-template directory is an independent Gradle project written in Kotlin. The standalone WizeStream-Plugin-Template repository provides instructions for a separate checkout, including Windows PowerShell. To use the bundled template, build the host SDK once, then build and sign the sample from the WizeStream repository root:

./gradlew :app:pluginSdkJar
./gradlew -p plugin-template generateSigningKey repositoryIndex

The SDK is exported to app/build/outputs/plugin-sdk/wizestream-plugin-api.jar. The sample package and index appear under plugin-template/build/repo/. The template uses Java 21, Android D8 with the host's minimum API 23 compiler profile and NIO desugaring configuration. Its README explains independent-project use and overriding SDK/key locations.

The sample WizeStream Example has a unique ID and an example-only base URL. It proves that the project compiles, packages, signs, and can register a service. Its TODO extraction methods do not implement a real website; replace them before publishing a usable plugin.

Native manifest

The complete sample manifest is in plugin-template/src/main/resources/plugin.json. Its core fields are:

{
  "pluginId": "org.example.wizestream.demo",
  "name": "WizeStream Example",
  "versionCode": 1,
  "versionName": "1.0.0",
  "host": "wizestream",
  "apiVersion": "2.0",
  "icon": "icon.png",
  "minHostVersionCode": 1052000,
  "minAndroidSdk": 24,
  "requiredCapabilities": ["profile-preferences"],
  "author": "Your name",
  "entryClass": "org.example.wizestream.demo.ExamplePlugin"
}

The sample's minHostVersionCode: 1052000 requires WizeStream 1.52.0 or newer, the first release with native plugin support. Raise this minimum if your plugin uses host APIs added in a later release.

requiredCapabilities lets a plugin reject a host that lacks a facility it relies on. Native API 2.0 currently advertises profile-preferences. Unknown required capabilities, a higher required host version, or a higher Android minimum cause rejection before code is loaded. The generated catalog copies these requirements from the manifest; the installer checks that catalog and signed package agree.

Entry and service implementation

The public entry class must have a no-argument constructor and implement WizeStreamPlugin:

class ExamplePlugin : WizeStreamPlugin {
    override fun createService(
        serviceId: Int,
        context: WizeStreamPluginContext
    ): StreamingService = ExampleService(serviceId, context)
}

Pass serviceId unchanged to StreamingService. The returned service's name must match the manifest. Keep pluginId stable across releases: it determines the persistent numeric service identity used by saved content, independently of installation order.

Implement URL handling and whichever extractors the provider supports: streams, search, channels, playlists, comments, and kiosks. Use the host downloader and result types. Advertise capabilities accurately and return the documented unsupported results for unavailable features.

WizeStreamPluginContext provides getHostVersionCode(), getHostVersionName(), and getProfileId() in addition to the inherited plugin identity and preferences. The profile ID is an opaque UUID string, not a numeric database key. Use getPreferences() for persisted settings and credentials; the host binds it to that profile.

String and Boolean settings declared in plugin.json are rendered by the host. The context exposes their defaults and a change-listener interface. The settings screen also offers a restart because some implementations cache their configuration. Theme color metadata is parsed, but this host retains WizeStream's own application theme.

Service icons

A plugin can supply its service icon through the existing manifest field:

"icon": "icon.png"

Place that image at src/main/resources/icon.png, or use another package-relative resource path and declare the same path in the manifest. The native template includes an editable example vector and a 256 × 256 PNG. Replace the example with a single-color image on a transparent background. The service selector tints its icons, so an opaque background would hide the artwork under that tint.

The encoded image must be no larger than 256 KiB, with width and height each at most 512 pixels. PNG is recommended. The template's pluginPackage task checks that the declared raster exists in the final archive, fits these limits, and decodes successfully. An omitted or unusable icon falls back to the generic plugin symbol without preventing an otherwise valid service from loading.

WizeStream reads the image from the verified signed package and uses it in service selection, the selected-service header, and relevant service pickers. No icon download or additional plugin API is needed. Installation or update still requires a restart before the new service artwork appears. Treat an icon change like any other published package update: retain the plugin ID and signing key, increase versionCode, and publish the matching signed package and catalog together.

Shared libraries and packaging

Compile against the exported SDK and the library versions pinned in the template. The extractor, Kotlin standard library, nanojson, jsoup, and commons-lang3 are supplied by the host. They are compileOnly dependencies and must not be copied into the plugin's JAR or DEX. The packaging task rejects host-class namespaces in the archive.

If additional libraries are needed, package and relocate them deliberately to avoid conflicts, and account for their licenses. Internal WizeStream UI, database, and player implementation classes are not part of the plugin SDK contract. Keep pluginMinSdk and desugaring settings matched to the host SDK; use the manifest to declare a higher device requirement and test the produced package.

Publish and update

Upload the generated .ppp and index.json to an HTTPS host. Relative package URLs in the generated index resolve against the index location. Share that index URL with users.

For an update, keep the plugin identity and signing pair, increase versionCode, update the human readable versionName, and regenerate the package/index. The template builds one plugin per catalog; a larger catalog can combine signed entries while retaining each publisher's key and signature. Do not publish ephemeral CI signing keys as a maintained repository identity.

Validation and licensing

The host tests cover signed-package verification, metadata and compatibility rejection, duplicate providers, stable IDs, profile isolation, and plugin-defined saved objects. Android fixture tests load the publisher's signed Twitch package and a native package built from this template. These tests exercise package/runtime integration without relying on a live website; live extraction and playback need separate service-specific checks.

Test the minimum supported Android version and a minified release host. Debug builds alone may hide missing classes caused by shrinking, Java APIs unavailable on older Android, or binary API mismatches. Preserve the package that was tested and publish its generated digest/signature.

The integrated extractor and this template carry GPL-3.0-or-later notices. The SDK's inherited source notices and the template's LICENSE remain part of the distribution. Preserve relevant notices and include the applicable licenses and corresponding source when distributing GPL components. Dependency licenses must also be accounted for.

The API-24 compatibility runtime is generated from Google's desugar_jdk_libs 2.1.5. Its upstream GPLv2 with Classpath Exception license and additional notice are bundled in assets/plugin-runtime/, alongside the runtime configuration's license and build metadata.

The package format and original host contract are based on the released PipePipe extractor plugin implementation and the official template.