open-index/open-npm huggingface dataset:
npm package: @hatfiller/tizenpstream
Description: TizenBrew module for P-Stream (pstream.mov) on Samsung Tizen TVs — TV remote support and focus handling for pre-2022 and older Tizen.
Author: perlytiara
Latest version: 1.0.2

# Tizen-PStream

TizenBrew **site modification** module for [P-Stream](https://pstream.mov) on Samsung Tizen TVs. Adds TV remote support and D-pad focus navigation, aimed at **older Tizen TVs (pre-2022)** and current models.

## Install

1. Install [TizenBrew](https://github.com/reisxd/TizenBrew) on your Samsung Tizen TV.
2. **App (launcher):** In the module manager add **`tizenpstream-app`** (no @). This gives you a **PStream** tile; opening it launches pstream.mov in the app view so you can navigate with the remote like a normal Tizen app.
3. **Mod (navigation + keys):** Add **`@hatfiller/tizenpstream`** so D-pad, Enter, Back, and media keys work on pstream.mov. Enter exactly **`@hatfiller/tizenpstream`** (no `npm/` in front). If you see “unknown module”, try **`hatfiller/tizenpstream`** (without `@`).

## What it does

- **D-pad navigation**: Arrow keys move focus between links, buttons, and the video (spatial-style).
- **Enter on video**: Play/pause when the video has focus.
- **Back key**: Exits fullscreen when in fullscreen.
- **Media keys**: Registers Play/Pause, Stop, FastForward, Rewind, Next/Previous so the TV sends key events to the page.

The script is written in ES5-style JS for compatibility with older Tizen WebKit.

### See your TV’s Tizen / device info (debug)

- **Once on load:** A small debug overlay appears for about 6 seconds with your TV’s user agent and Tizen build info (if available).
- **Anytime:** Press the **0** key on the remote to show or hide the same overlay (UA, Tizen API, build). Press **0** or **Back** again to close it.

## Module type

This is a **site modification** module (`packageType: "mods"`). It injects `mods/userScript.js` (or `dist/userScript.js`) into `https://pstream.mov` when you open it via TizenBrew.

## Repo layout

- **Mod (this package):** `@hatfiller/tizenpstream` — injects into pstream.mov for remote navigation and debug overlay.
- **App launcher:** `tizen-pstream-app/` — package **`tizenpstream-app`** (unscoped); add it in TizenBrew for a PStream tile. Publish from that folder with `npm publish --access public`.

## Build

```bash
npm run build
```

This copies `mods/userScript.js` to `dist/userScript.js` (used when publishing).

## License

MIT
npm package: @hatfiller/tizenpstream-app
Description: TizenBrew app launcher for P-Stream (pstream.mov). Open as an app and navigate with the remote.
Author: perlytiara
Latest version: 1.0.0

# PStream app launcher (TizenBrew)

TizenBrew **application** module: adds a **PStream** tile. Opening it launches [pstream.mov](https://pstream.mov) so you can browse and navigate like a regular Tizen app (with the mod for remote support).

## Install on TV

In TizenBrew module manager add **`@hatfiller/tizenpstream-app`**. Also add **`@hatfiller/tizenpstream`** (the mod) so D-pad and media keys work on the site.

## Publish to npm

From this folder:

```bash
cd tizen-pstream-app
npm publish --access public
```

## Layout

- `app/index.html` — redirects to https://pstream.mov. The mod injects when that URL loads.