* Parse post live dvr info
* add otf info
* dash rework
* Bug in detecting live videos in HLS streams
* small refactor
* otf support (maybe)
* remove indexRangeExact
* tweak
* Enable OTF, and hope for the best
* Fix OTF and post live dvr
* logs
* tweaks and error handling
* change profile
* dash tweaks
* hls tweak
* Drm support
* A few tweaks to http connection
* changelog
* changelog
* add requires_widevine_drm to app manifest
* movie renderer nodes
* Small fix in header parsing
* Fix windows path issues
* Few script changes to support windows
* Update build scripts
* remove duplicate call
* changelog
* Fix for telnet test runner
* Consistent node parser warnings
* telemetry release
* remove friendly name from tags
* revert log level calls, use noTelemetry
* Ignore nodes
* Event fingerprinting
* ignore known error
* NodesParser fingerprinting
* user id
* Fix missing title when fetching video
* changelog
* tweak
* no telemetry in longpoller
* rate limit
* Attachment support
* Playlet decipher server
* cache sts
* wip
* PoToken per video
* remove unused param
* potoken mandatory for videos
* separate potoken option
* logging
* rename
* /player with auth
* Refactor rename
* Fix rename
* parse isloggedin tweak
* TODO
* get rid of hardcoded formats
* Remove hardcoded formats in web app
* refactor
* no cache for sts request
* [skip ci] todo
* [skip ci] update PRVACY
* No visitor data if we're using a profile
* Cancellation
* remove visitor data header for authed /player
* iOS fallback for live videos
* changelog
* revert using dashUrl
* refactor
* Add Job System
* Remove testing stuff
* changelog
* plugin work
* Convert a couple more jobs
* simplify callback
* assert
* Logging changes and rendezvous perf
* changelog
* sb segment viewed job
* clear cache, and few changes
* Lint fix
* a couple more jobs
* reduce rendezvous in web server
* refactor
* Lint fix
* no message
* test shutdown
* comment
* free fields
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* [Spike] ytjs and boguard in web app
* storyboards and captions
* cache potoken
* captions fix
* Increase session data to 7 days
* changelog
* Fix missing timestamp issue
* Watch history has video info
* Lint fix
* Fix upcoming in watch history
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Search continuations
* add another type of playlists
* Continuation for search and channels working
* Playlist continuation
* Fix pagination - what a fucking mess I've created
* web app fix
* Changelog
* Parse author in videoRenderer
* Parse more fields
* Parse live badge
* playlist video count
* Parse more things
* parse playlists and albums
* More parsing work
* announcement and changelog
* Lint fix
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* locale for web app
* more translations
* Rename profiles service to avoid locale conflict
* More translation work
* Lint fix
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* OK button as Play/Pause
First OK press now shows Video UI.
It's achievable via hidden Roku Video node property `showUI`, which allows you to override how trickplay should be displayed by specifying parts of the UI to be rendered (like 'titleAndTime', 'trickplayBar', e.t.c). A timer is started every time custom UI is shown to prevent UI from staying forever.
Second OK press while UI is visible pauses the video (pause poster animation is not added yet).
However, since we shouldn't break default OK button actions, we must track whether user is seeking in video UI and if they do, fallback to Video internal OK handler.
Also, auto-formatted VideoPlayer.xml
* fix comment typo
* move HideUI function slightly higher
* Addressed the feedback:
* Add a workaround to leave Live video behavior intact (no pause, ok simply switches UI back and forth)
* Hide UI when minimizing to avoid a bug where title and time element could stay forver
* More aggressive `isSeeking` detection, so every left/right/ff/rw button press would cause us to fall back to default OK button handler
* More accurate liveNow handling
* Changelog
---------
Co-authored-by: Brahim Hadriche <brahim.hadriche@gmail.com>
* Refactor long press
* Lint fix
* Queue UI, refactor PlayQueue to use ContentNode
* Add queue notification hint
* Play at index
* Play queue with highlight
* Priority
* Comment
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Smooth scroll to top if active screen selected in web UI
* Use fullname repo
---------
Co-authored-by: agathanonymous <agatha@juggalol.com>
Co-authored-by: Brahim Hadriche <brahim.hadriche@gmail.com>
* Empty bookmarks screen
* Bookmarks object
* Long press support
* Lint fix
* Context menu v1
* A working context menu
* Basic bookmarks in context menu
* Use a root content node for bookmarks
* context menu animation
* small tweak
* move logger around, adjust animation
* Lint fix
* Restore logger fix
* Cache channel info
* Bookmarks v1
* Added comment
* Adjust "popular" feed error handling
* Progress with bookmarks
* Add todo
* add todo
* handle roDateTime logging
* logger adjustment
* Use yaml for api and layout
* rename requestData to feedSource
* Restructure things
* Lint fix
* remove comment
* introduce feedSource id
* small cleanup
* playlist context menu
* Context menu for the channel view
* changelog
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Generate dash locally
* Refactor xml gen
* Lint fix
* Add feature flag
* Multi language audio tracks
* Unused var
* Set video expiration to 5 hours
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Fresh start
* Create an xml include plugin (#111)
* Restructure and add testing (#114)
* rooibos setup
* Restructure and add testing
* docs
* Restore manifestpipi
* Description in tools
* A bit of docs
* Auto bind feature (#115)
* Auto bind feature
* Fix children merge
* bs plugin fix
* Feature/app controller (#120)
* Initial layout
* Restructuring and plugin work
* A couple of tweaks in binding stuff
* tweaks
* basic stack
* Add basic app controller
* Support json5/yaml in playlet config files (#123)
* Support json5 in playlet config files
* Add yaml to the mix
* Delete old lib project
* plugin fix
* plugin tweak
* verbose logging
* Revert "verbose logging"
This reverts commit 25867f4226703d83102519a0d48d1cc46a9876de.
* One idea to fix the include plugin
* Fix instability in plugins
* Feature/navbar (#126)
* Navbar
* typo
* comment
* Single content node, and tests
* Remove unused field
* tweaks
* update dependencies command
* tweak formatting
* Add web app screen
* Set id in created screens
* Search screen
* Tests
* Show playlists and channels in search results
* Move screen stuff to app controller
* Home screen (wip)
* Add preferences node
* README.md copyedits (#130)
* README.md: Fix typos
* README.md: Standardize capitalization and punctuation
* Update docs/README.md
---------
Co-authored-by: Brahim Hadriche <brahim.hadriche@gmail.com>
* Web server: round 1 (#131)
* web server object
* Logging
* Web server round 1
* Lint fix
* Small tweaks
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Logging to file
* Leftover
* Add logs file to web server
* Fix for timeout
* Disable keepalive connection
* add openapi spec file
* Lint fix
* add prefs version in api
* Add ecp api definition
* Lint fix
* Settings rework (#135)
* Settings rework
* Standard OnFocusChange event
* Video player stuff (#136)
* Video player stuff
* Restructure things so that focus is better handled
* Lint fix
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Exit dialog
* A bunch of changes
* New http client
* Set TODO priorities
* picture in picture
* mark video watched
* Video player stuff mostly there
* update spec file
* Sponsorblock
* FuncName
* SponsorBlock notifications
* Lint fix
* misc
* remove basic auth feature flag (until we start using it)
* Play queue part 1
* type fix
* handle unicode in request body
* SponsorBlock chapter label
* modal base
* remove a hack
* Invidious settings
* web server reduce timeout
* Test for captions
* Lint fix
* remove rpc stuff
* small change
* Solve focus management
* a couple of fixes
* Remove a bunch of todos
* feed error handling wip
* Lint fix
* navigation in instance settings
* home screen pagination support
* Refactor feed to support pagination on search page
* cell loading animation
* Tweak caching
* delete test screen
* playlist support part 1
* Basic playlist view
* Restore playlist/channel handler
* Refactor some content node stuff, and add an auth popup dialog
* A bad implementation of a playqueue
* Lint fix
* playlist cast fix
* Feature/web app catch up (#139)
* playlist cast fix
* Move things around
* support playlists in web app
* update api
* Bump deps
* Downgrade todo
---------
Co-authored-by: Bryce Harrington <bryce@bryceharrington.org>
Co-authored-by: github-action linter <githubaction@githubaction.com>
* Add basic router
* Add a preferences file
* small changes
* Basic settings navigation menu
* Lint fix
* Add bunch of controls
* Lint fix
* StringControl
* Lint fix
* Add description to keyboard
* Settings saving and loading
* Lint fix
* Settings migration stuff
* GET web api
* Lint fix
* PUT and DELETE (I really fucking hate BrightScript)
* plug in sponsorblock settings
* autoplay, quality, and video proxying
* Remove unused stuff
* Lint fix
* Invidious instance stuff
* cache public instances on start
* Start loading home screen after fetching instances
* Move web app out of settings to its own screen
* picture in picture when in settings
* Web app (#80)
* Update instance stuff
* Update dependencies
* Add basic layout
* Info and settings page, missing styling
* Navbar fixes
* Settings page formatting
* Theme stuff
* Feedback link
* Fix username badge
* Fix svelte warnings
* A wip search page
* Add a couple of api functions
* Wip home screen
* user country code
* Expose token and proxy auth calls
* Use auth requests server side
* Some cleanup
* Add svelte vs code extension
* remove old web app
* More layout stuff
* Tweak for string control
* Filter out old search suggestions
* Search history stuff
* img size for lazy loading
* Basic modal to play video
* Lint fix
* Dependencies bump
* Add video duration and LIVE indicator to cell
* Delete legacy stuff
* Add dev menu
* Lint fix
* Video cell layout
* Cell stuff
* prefs visibility
* Modal layout
* Drag and drop functionality
* Clear search history
* Move web calls to main app
* changelog
* changelog
* Mostly comments
* Lint fix
---------
Co-authored-by: github-action linter <githubaction@githubaction.com>
Playlet, the Roku app, does not collect any user information whatsoever.
In fact, it does not have any servers capable of collecting any form of data.
Playlet, the Roku app, does not collect any user personal information whatsoever.
Playlet does not show advertising, whether personalized or non personalized.
Playlet may integrate with 3rd party telemetry services in order to capture anonymous diagnostics data. The only purpose of this data is to diagnose issues and improve the app.
## Invidious
Playlet may request information from one or more [Invidious](https://invidious.io/)
servers, depending on user configuration. With these requests, absolutely no
user data is collected, and only the bare minimum and necessary information
servers, depending on user configuration. With these requests, absolutely no
user data is collected, and only the bare minimum and necessary information
is sent, which is used to enable the viewing of content.
Please note that some of the [Invidious](https://invidious.io/) servers used
could be public instances hosted by volenteers. These instances are available
[here](https://api.invidious.io/).
at [api.invidious.io](https://api.invidious.io/).
While invidious does no data collection by default, and it is in fact built to
be privacy driven, but in theory, from a playlet request it is possible to
know the IP address of a user, the identifiers of watched video, and search
keywords. In case the user is unreasonably paranoid, they can host their own
be privacy driven, but in theory, from a Playlet request it is possible to
know the IP address of a user, the identifiers of watched video, and search
keywords. In case the user has privacy concerns, they can host their own
Invidious instance and use it from Playlet.
## SponsorBlock
Playlet may request information from a [SponsorBlock](https://github.com/ajayyy/SponsorBlock)
server, in order to get sponsor sections for requested videos to watch.
With these requests, absolutely no
user data is collected, and only the bare minimum and necessary information
## Innertube
When the Playlet built-in backend is in use, instead of an Invidious instance,
Playlet makes requests directly to Innertube instead of Invidious.
Similar to Invidious requests, only the bare minimum and necessary information
is sent, which is used to enable the viewing of content.
Playlet uses hashing when requesting video metadata, which obfuscates
Additionally, when a YouTube account is used in Playlet, Innertube traffic can
become associated with the account, which further reduces user privacy. This
is necessary to use features associated with YouTube accounts, such as
subscriptions, playlists, and watch history.
## SponsorBlock
Playlet may request information from a [SponsorBlock](https://github.com/ajayyy/SponsorBlock)
server, in order to get sponsor sections for requested videos to watch.
With these requests, absolutely no
user data is collected, and only the bare minimum and necessary information
is sent, which is used to enable the viewing of content.
Playlet uses hashing when requesting video metadata, which obfuscates
the video id requested. This is a SponsorBlock privacy feature that protects
user privacy.
Additionally, Playlet may send a "skipped" event to SponsorBlock, to indicate
that a section of a video has been skipped. This event does not have any
tracking information attached to it, and it is anonymous. It is merely to
indicate to contributers how much their contributions are being used in the wild.
that a section of a video has been skipped. This event does not have any
tracking information attached to it, and it is anonymous. It is merely to
indicate to contributors how much their contributions are being used in the wild.
## LeanBack
LeanBack, also known as Lounge API, also known as "cast from phone". Is a feature that Playlet implmements as a convenience to allow users to use a separate device to browse and cast videos.
When this feature is used, all traffic related to the videos being watched, added to the queue, and the video player state is routed through YouTube servers.
Playlet tries to preserve user privacy, to the best of its ability, by implementing several techniques, such as randomizing device id, using a fresh session on each start, and only providing necessary fields for the feature to function.
Additionally, Playlet does not join a session/lounge, until a device is attempting to connect using DIAL (**DI**scovery **A**nd **L**aunch spec) also known as "Connect with Wi-Fi", or when a `Link with TV code` is generated, by visiting the appropriate settings page.
If you have privacy concerns and do not wish to use this functionality, simply do not connect from a local network using the YouTube app or the browser, and do not visit the `Link with TV code` tab.
More under [Screenshots](./docs/screenshots/README.md)
## Installation
[Playlet on Roku channel store](https://channelstore.roku.com/details/4a41d0921265a5e31429a7679442153f:b5bcb5b630c28b01e93bf59856317b43/playlet) or search "Playlet" in the Roku channel store on your device.
Can't install from the store? See [How to install Playlet as a sideloaded/dev app](https://github.com/iBicha/playlet/discussions/371)
## Features
- 🔥 No Ads (Not now, not ever)
- 🕵️ No Tracking
- 🛡️ Privacy driven (uses Invidious backend)
-⚔️ SponsorBlock integration (skips undesirable sections in videos)
For full instructions, see [Set up your Roku device to enable Developer Settings](https://developer.roku.com/en-ca/docs/developer-program/getting-started/developer-setup.md#step-1-set-up-your-roku-device-to-enable-developer-settings)
Make sure to remember the password you set during this step, you will need it later.
#### Gather your info
By now, you should have the following
- Your Roku Dev password (setup in the previous step)
- Your Roku TV local IP address
- You can find this information in your TV network settings. It should look like 192.168.X.X or so
#### Install Playlet (command line)
Install Playlet as a dev channel using this command, and replace:
-`REPLACE_PASSWORD_HERE` : with your Roku Dev password
-`REPLACE_IP_ADDRESS_HERE` : with your Roku TV local IP address
```
curl https://raw.githubusercontent.com/iBicha/playlet/main/install.sh | ROKU_DEV_TARGET=REPLACE_IP_ADDRESS_HERE DEVPASSWORD=REPLACE_PASSWORD_HERE sh
```
Example:
```
curl https://raw.githubusercontent.com/iBicha/playlet/main/install.sh | ROKU_DEV_TARGET=192.168.1.2 DEVPASSWORD=1234 sh
```
If successful, you should see some output on your terminal, with `Status: 200`.
#### Install Playlet (Manual)
1. Go to `https://github.com/iBicha/playlet/releases` and download `playlet.zip`
2. Open `http://REPLACE_IP_ADDRESS_HERE/` (e.g. http://192.168.1.2/) in your browser
3. If prompted for username and password
- The username is `rokudev`
- The password is whatever you set when you enabled Developer mode
4. Click on `Upload` button and select the `playlet.zip` file you downloaded in step 1
6. Click `Install with zip` button
- If you're updating the app (or you already have a dev channel) the button would say `Replace with zip`
> ℹ️ **Note**: If you are logged in when you change the instance, you will remain logged in to the old instance. In this case, Playlet will use the old instance to retrieve your subscriptions and your playlists, but will use the new instance for everything else. After switching to a new instance, you can log out and log in again to use your profile on the new instance.
Create a file under `playlet/.vscode/.env` containing:
```
ROKU_DEV_TARGET=REPLACE_IP_ADDRESS_HERE
ROKU_DEVPASSWORD=REPLACE_PASSWORD_HERE
```
For everything related to Playlet app development, please see the [documentation](./docs/README.md)
Then you can open the project using VS Code and deploy to your Roku TV using the Debug button.
## Analytics and telemetry
Roku collects usage data, and you can find the data made available to Playlet in the [Wiki](https://github.com/iBicha/playlet/wiki).
Playlet could run on variaty of devices, with different capabilities and screen sizes, and different Invidious instances, in addition to the experimentation YouTube does based on account and/or ip.
This is why it was necessary to collect telemetry/diagnostics data, in order to capture issues and fix them. However, you can disable this feature in the settings.
But it's not enough, it's important to report any issues you encouter using Playlet, so they can be addressed.
## Why Playlet
```
```none
playlet - noun
play•let /ˈplālət/
: a short play
```
**Playlet** is about keeping the time you spend on Youtube short and useful. It values your time, so it does not show you ads, and allows you to skip sponsored sections and other irrelevant information that's designed to monitize you and/or waste your time.
**Playlet** is about keeping the time you spend on YouTube short and useful. It values your time, so it does not show you ads, and allows you to skip sponsored sections and other irrelevant information that's designed to monitize you and/or waste your time.
There's a cliché about how a lot of open source software is **`"Made with ♡"`**. This project in particular is **not**.<br/>
**Playlet** was created out of **spite**, because I believe I have watched enough back-to-back, unskippable Youtube ads for a lifetime.
**Playlet** was created out of **spite**, because I believe I have watched enough back-to-back, unskippable YouTube ads for a lifetime.
By removing all the bloat, the ads, the tracking, we could end up with an even faster app than the official one.
In any case, I hope you find **Playlet** useful, and pleasant to use.
## Disclaimer
**Playlet** does not serve or distribute any material from unauthorized sources.<br/>
**Playlet** is simply a frontend to other systems (such as https://github.com/iv-org/invidious), bringing the watching experience to the TV, as opposed to the existing frontends that are web and mobile focused.
**Playlet** is simply a frontend to other systems (such as [Invidious](https://github.com/iv-org/invidious)), bringing the watching experience to the TV, as opposed to the existing frontends that are web and mobile focused.<br/>
**Playlet** authors acknowledge that all trademarks and registered trademarks mentioned in this repository and related pages are the property of their respective owners. The use of these trademarks or trade names is for identification purposes only and does not imply any endorsement, affiliation, or sponsorship by the trademark owner.
This document contains various kinds of information related to Playlet development. It's a bit of a [brain dump](https://en.wiktionary.org/wiki/brain_dump) that I tried to keep structured.
- [Environment setup](#environment-setup)
- [Project setup](#project-setup)
- [Roku Developer mode](#roku-developer-mode)
- [Setting up Visual Studio Code](#setting-up-visual-studio-code)
- [Tools](#tools)
- [BrightScript Language Extension for VS Code](#brightscript-language-extension-for-vs-code)
For full instructions, see [Activating developer mode](https://developer.roku.com/en-ca/docs/developer-program/getting-started/developer-setup.md) (if the link does not work, try refreshing or opening in private navigation)
Make sure to remember the password you set during this step, you will need it later.
### Setting up Visual Studio Code
Visual Studio Code is pretty much necessary for development.
> apologies if this is not your favorite IDE. Please do [share](https://github.com/iBicha/playlet/issues/new?title=I%20don%27t%20like%20VS%20Code) if you feel this should not be a requirement.
Once you have it installed, you probably want to install the recommened plugins for this project, such as [BrightScript Language extension for VSCode](https://marketplace.visualstudio.com/items?itemName=RokuCommunity.brightscript) and [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode)
Next, create a file `.env` containing the following:
```makefile
ROKU_DEV_TARGET=INSERT_IP_HERE
ROKU_DEVPASSWORD=INSERT_PASSWORD_HERE
```
Where `ROKU_DEV_TARGET` is the local ip address of your Roku device, and `ROKU_DEVPASSWORD` is the developer password from [Roku Developer mode](#roku-developer-mode).
Now from VS Code, press the Play button with the target `Playlet (dev)` selected. This should build and run Playlet on your device in dev mode.
## Tools
### BrightScript Language Extension for VS Code
The [BrightScript Language extension for VSCode](https://marketplace.visualstudio.com/items?itemName=RokuCommunity.brightscript) includes many useful tools for development and debugging. Includes things like
- Sending commands to the App
- Like getting the focused node, inspecting values, etc
- SceneGraph inspector
- Allows you to see the hiearchy of the scene, and even modify elements at runtime. Useful for quick tweaks or adjusting UI.
- Roku Registry
- Allows you to inspect the content of the [Registry](https://developer.roku.com/en-ca/docs/references/brightscript/components/roregistry.md)
Playlet is configured to have all these features available when run in debug mode.
### RALE (Roku Advanced Layout Editor)
[The Roku Advanced Layout Editor, aka RALE](https://devtools.web.roku.com/roku-advanced-layout-editor/), is a tool that provides a hierarchical view of the node tree in a Roku Scene Graph channel.
It's a standalone application that you can optionally install.
It's sometimes useful when designing UI and inspecting values of nodes.
Well, if you do happen to use it, Playlet is configured to connect to RALE.
### BrighterScript
[BrighterScript](https://github.com/rokucommunity/brighterscript) is a community driven programming language that compiles to BrightScript and has [useful features](https://github.com/rokucommunity/BrighterScript/blob/master/docs/readme.md). Playlet uses BrighterScript features a lot across the code base, and even implements a few of BrighterScript plugins.
### BrighterScript Linter/Formatter
Playlet uses [bslint](https://github.com/rokucommunity/bslint) and [brighterscript-formatter](https://github.com/rokucommunity/brighterscript-formatter).
You can use these commands to lint/format Playlet code:
```bash
npm run format
npm run format:fix
npm run lint
npm run lint:fix
```
### BrighterScript Plugins
See [Playlet Brighterscript Plugins](./plugins.md)
## Playlet App
Playlet is split into two parts: `Playlet App` and `Playlet Lib`.
`Playlet App` is a regular Roku app, that uses a [ComponentLibrary](https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/componentlibrary.md) to load the rest of the app from [Playlet Lib](#playlet-lib).
In a way, `Playlet App` is a thin loader, while most of the logic lives in [Playlet Lib](#playlet-lib).
`Playlet App` is responsible for a few things:
- Load `Playlet lib`
- By default, it tries to load the latest version from Github
- If that fails (for example, if Github was down), it fallsback to loading an embedded copy of Playlet Lib
-`if Github was down` -> yes, this has happened in the past, and it did not stop Playlet for working.
- In dev mode, it loads Playlet lib that's being served by [BrightScript Language Extension for VS Code](#brightscript-language-extension-for-vs-code)
- Once loaded, Playlet loads the `MainScene` from Playlet Lib
- Pass Launch parameters and Input parameters to Playlet Lib
- Show a loading screen and wait for Playlet Lib to hide it
That's pretty much it.
### Why separate between Playlet and Playlet Lib?
There are a few reasons we made this separation:
- Playlet relies on [Invidious](https://github.com/iv-org/invidious). Invidious tries to keep up with YouTube making changes to their platform, but sometimes, a breaking change happens that requires Playlet to react quickly. Releasing through the Roku Channel store can take days, or a week. During this time, Playlet would be not functional, and that's not acceptable.
- The ability to roll back: Sometimes an app breaking bug gets released. Allowing users to choose a seperate version is a flexible way to keep things working. For example, it's possible to choose a different verrsion from the developer settings in the web app.
- It is simply easier to release: Releasing Playlet Lib on Github, and everyone receives the latest version immediately, is very convenient and less of a hassle, than going through the Roku Channel store.
- I've had instances where I was trying to pass the certfication for Playlet to publish it. One of the criterias is to pass a some automated tests. But the tests were failing because their system could not connect to their Roku test devices (connection keeps timing out). My only option was to keep trying over and over until it worked.
- It might sound that Playlet Lib is just a workaround for the Roku Channel release process. But phrased differently, Roku Channel release process is not good enough of what we need for Playlet.
- Canary builds: The latest version of Playlet can be tested as soon as it lands in the main branch. This is a great way to test newer features in production, without affecting the stability of the released version. Roku has the concept of "beta" channels, but they are more cumbersome.
- Enable forks. If for some reason someone wanted to use a fork of Playlet (for example, another folk had other features or bug fixes that this repo doesn't), they don't need to publish a complete new app. The url to load playlet is configurable, and can be changed through a simple web api. Allowing and enabling forks is what makes FOSS thrive.
## Playlet Lib
`Playlet Lib` is a [ComponentLibrary](https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/componentlibrary.md) that gets loaded by [Playlet App](#playlet-app). It containes pretty much all the logic needed to run the app.
### WebServer
Playlet lib comes equipped with a web server that runs on port 8888 when the app starts. This server enables:
- The communication between Playlet and [Playlet Web App](#playlet-web-app)
- Through http calls, and even through web sockets for real time events
- Allows remotely casting videos, change preferences, etc.
- Authentication using Invidious
The web server runs on a continuously running [Task](https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/task.md) and uses a middeware system to manage routes, serve static files, [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), and more.
Please note: while we would like to keep the API stable as much as possible, Playlet can't reasonbly maintain multiple versions of the API like traditional web apis, because it adds complexity and maintainablity burden on an app the runs in constrained environment. In short, we'll try not to break the API, but we might from time to time.
#### Debug endpoints
Additionally, the web server exposes Web APIs in debug mode to help with debugging. To name a few examples:
-`/debug/pkg` to inspect files under Playlet App
-`/debug/libpkg` to inspect files under Playlet Lib
-`/debug/tmp` and `/debug/cachefs` to inspect files in temporary and cache
These are useful to see if the files and caching are working as expected.
### Releases from Github
Since Component Libraries are simply zip/squashfs files hosted at some HTTPS endpoint, Github releases are used to host and deliver Playet Lib to users. By default, Playlet grabs `https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.squashfs.pkg` and loads it, but this can be pointed to somewhere else, if for some reason the Github repository becomes unavailable.
Squashfs files are faster to load, but they require signing. Zip files can be used without signing if they are served from an HTTPS endpoint.
### Dev library hosted by VS Code Extension
When in debug mode, Playlet lib is packaged and served locally on port 8086, and Playlet app would use it instead of the Playlet lib from Github. This is an important detail, because once you stop debugging in VS Code, the dev app on your Roku TV won't function anymore, with an error:
> Could not load Playlet component library from any of the following urls:
> If the problem persist, contact Playlet authors.
### Feature flags
Playlet uses [bs_const](https://developer.roku.com/en-ca/docs/references/brightscript/language/conditional-compilation.md#manifest-constant) to define feature flags. The flags are usually for features that introduce a downside, or require further refinement.
### User preferences
Playlet uses a json file that lists user preferences. It should be under [playlet-lib/src/config/preferences.json5](/playlet-lib/src/config/preferences.json5)
This file defines the kind of preferences that users can change, such as autoplay, preferred quality, and so on.
This file is parsed at runtime and UI for the settings is generated. The same mechanism is used for Playlet and the Web App.
Additionally, the web server exposes the settings under `/api/preferences`, which can enable importing/exporting user preferences.
### Home page layout
When Playlet starts, it shows a video feed on the screen. Subscription, Trending videos, and so on.
The layout is defined under [playlet-lib/src/config/default_home_layout.yaml](/playlet-lib/src/config/default_home_layout.yaml).
This could allow users to define custom layouts, so they can see what they find relevant in the home page. This can include Subscription, Trending, Popular videos, Search per keywords, or Playlists.
Additionally each feed has information on how it is fetched. For now, only Invidious can be data source, but other systems should be configured in the same way.
Invidious API definitions are defined under [playlet-lib/src/config/invidious_video_api.yaml](/playlet-lib/src/config/invidious_video_api.yaml), and Playlet parses these at runtime and make the right API calls to fetch the data.
Finally, this layout system is what allows both the BrightScript app and the Web app to display the same homepage.
## Testing
Playlet uses [Rooibos](https://github.com/georgejecook/rooibos) for testing.
Files following the pattern `*.spec.bs` are considered test files and are only included in test builds.
Additionally, sometimes tests require additional setup (creating test components with multiple files). In this case, they can all be placed in a folder named `tests`. Any `tests` folder will only be included in test builds.
Running the tests for both `playlet-app` and `playlet-lib` can be done with a single command:
```bash
npm run test
```
Which will build the test app, deploy, run tests and parse the output for results.
Tests do not cover a lot right now, but at least there's a testing setup in place.
## Playlet Web App
Playlet comes with a web app built with [Svelte](https://svelte.dev/). The web app can be used to browse videos, search, cast videos to TV, and even change preferences.
The web app gets served using the Playlet web server. It also interacts with the web APIs from the web server.
It's important to note that if Playlet is not ON (on your Roku device) or the TV is in screen saver mode, then the web app can't be used.
When Playlet gets built, several steps happen:
1. The web app gets kicked off first. The web app artifacts gets written to `playlet-lib/src/www`
1. Playlet lib gets built second. As part of the build pipeline, a copy of `playlet-lib.zip` is made under `playlet-app/src/lib/playlet-lib.zip`
1. Finally, Playlet app is built.
### Svelte development
The web app uses [Svelte](https://svelte.dev/), [Vite](https://vitejs.dev/) and [Typescript](https://www.typescriptlang.org/) primarily. It currently does not use [SvelteKit](https://kit.svelte.dev/), since it doesn't need some of the more advanced features that SvelteKit offers, such as routing or server-side rendering (SSR)
Since modifying the web app code requires building all three projects (Playlet, Playlet lib, and Playlet web app) this makes the iteration speed very slow, and we lose the benefits of web development, such as hot reloads.
For that reason, the recommended iteration when working on the web app is:
1. Start `Playlet (dev)` (by selecting `Playlet (dev)` and pressing Play in VS Code)
1. Once Playlet starts, switch to `Playlet Web (dev)` and press play. Do not stop `Playlet (dev)`
1. The web app should start in the browser
You will notice that the browser tab that just opened shows an url like `http://192.168.1.X:5173/?host=192.168.1.Y:8888`
This is because the web app will be served from Vite, while API calls to the Playlet will be done to the Playlet lib webserver.
For debugging, choose the compound target `Playlet Web (Debug)`.
### Tailwind/Daisy UI
The Playlet web app uses [Tailwind CSS](https://tailwindcss.com/) as its base styling library. Additionally, it uses [DaisyUI](https://daisyui.com/) as it offers a versatile set of components, and has built-in supports for themes.
### API calls
The Playlet web app communicates with the Playlet Roku app using web APIs. The web app also uses Invidious apis documented at [https://docs.invidious.io/api](https://docs.invidious.io/api)
#### API calls (proxy authenticated)
When making authenticated calls to Invidious (for example to fetch the user Subscription feed) the Bearer token is needed.
In this case specifically, the web server acts as a proxy between Invidious and the web app. This is for a few reasons:
- CORS: Bearer token can't go through to Invidious from the web app (due to missing `Access-Control-Allow-Credentials` header)
- The web server is not secure: it's not on HTTPS
- It's best if the Invidious access token would not be served to the web app, and remain on the Roku device
For API calls that don't require authentication, the web app fetches data from Invidious directly.
### Developer settings
The developer settings are found at the buttom of the settings page.
One setting that is only available in the web app is `Playlet Library version`. It allows you to point to a different Github release other than the default `latest`.
This is mostly useful to QA the `canary` release (see [Canary release](https://en.wikipedia.org/wiki/Feature_toggle#Canary_release)) in a "production" setting before making it available to all users as the official "latest" version.
#### In case of a softlock
If the dev menu is used to load a custom Playlet lib url, but you couldn't revert back:
On pull requests, a Github action will run `lint:fix` and `format:fix` and push changes to the PR branch, to keep things tidy.
When merged to main branch, a Github action will build Playlet, run static analysis using Roku's [Static Channel Analysis tool](https://devtools.web.roku.com/#static-channel-analysis-tool), and release a new version tagged `canary`, with the build artifacts attached, and changelog included.
Existing `canary` release will be removed before creating a new one.
Playlet implements a few [Brighterscript Plugins](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md). The plugins inject themselves in the compilation process, allowing the modification of bs scripts, xml components, and even assets or the app manifest. Let's start with a simple one:
This plugin allows us to include `jsonc`, `json5` and `yaml` files into the app as static assets. They are an alternative to plain `json`, which for instance, does not support comments. Additionally, this plugin minifies the `json` files.
### Why
Brightscript can only parse json natively using [ParseJson](https://developer.roku.com/en-ca/docs/references/brightscript/language/global-utility-functions.md#parsejsonjsonstring-as-string-flags---as-string-as-object). But it is nice to format config files as we please, include comments, and use the [Json5](https://json5.org/) format in general. Additionally, we get smaller files than the original assets.
### How
At the end of the build, the plugin scans for certain files (`jsonc`, `json`, `json5` and `yaml`), and converts them to plain json, while keeping the original file name. That way they are all parsable by the [ParseJson](https://developer.roku.com/en-ca/docs/references/brightscript/language/global-utility-functions.md#parsejsonjsonstring-as-string-flags---as-string-as-object) function, even though their original format is not compatible.
This plugin allows us to make modifications to the app manifest dynamically, mostly based on compiler flags.
### Why
A few reasons. For example:
- If `--debug` flag is passed to the compiler, we want the `DEBUG` [compilation constant](https://developer.roku.com/en-ca/docs/references/brightscript/language/conditional-compilation.md) to be true
- If `--test-mode` flag is passed, Turn `playlet-lib` into a standalone app instead of a component library, so we can run it as a standalone app for testing
- Allows us to `DEBUG_HOST_IP_ADDRESS` with the local ip address of the debugging machine, so that `playlet-app` is able to find the `playlet-lib.zip` file that VSCode is serving during a debug session.
### How
We simply read the content of the original manifest, and modify it before the compilation starts. When the build is finished, we restore the source file of the manifest.
Where `FuncName` will determine the function name at runtime. This way, we will get a linter error if there's a typo, and adds a bit of safety.
### How
It's usually possible to create all types of validation plugins using the [brigherscript plugin APIs](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md). But this particular plugin is generic enough to allow us to define rules based on Regex. To define the rule in the previous example, we simply add this to the `bsconfig.json` file:
"message":"observeField(\"field\", \"callback\") is not allowed. Use observeField(\"field\", FuncName(callback)) instead."
}
],
```
The plugin will scan all the code for usage matching `"regex"` with the `"regexFlags"`. If found, it will error with the `"message"` and the error code `"code"`.
The code allows us to ignore this diagnostics message, using the following:
This plugin allows us "include" different pieces of a component, enabling [Composition over inheritance](https://en.wikipedia.org/wiki/Composition_over_inheritance)
### Why
Consider a "behaviour" that we want in multiple components. For example:
Imagine you want to enable many components to "Beep". You have a few options:
- Inheritance: you make a base component that can "Beep", and extend it in different components. This can seem ok at first, but as your app scales, it becomes a burden to manage these inheritance relationships.
- Copy the fields, and the `<script>` tags to components everywhere. Can lead to lots of duplication, is error prone, but it can work
- Use this plugin, which will do all the copying for you!
### How
The plugin looks for the `includes` attribute in components:
This way, we can share the functionality in a composable way, but still keep the code base sane enough.
A couple of more details:
- the "behaviours" are supposed to be pieces of functionality, and not to be used as components. This is why we explicitely look for files named `*.part.xml`, to be more intentional with what is a component, and what is a "part".
- It's possible to include multiple "parts" in a component, separated by a comma:
`@oninit` is an annotation that can be added to functions, and then these functions will be called in the `Init()` function of the component it is in.
### Why
Consider the components "parts" from [Includes](#includes) plugin. Sometimes these behaviours need to initialize. Without the `@oninit` annotation, components including a part need to be aware of of any functions that we need to call in `Init()`. But the reality is, this is an implementation detail that the including component should not be concerned with.
### How
Simply this code:
```brighterscript
function Init()
end function
@oninit
function SomeFunction()
end function
```
would transpile to:
```brighterscript
function Init()
SomeFunction() ' auto-generated!
end function
function SomeFunction()
end function
```
Important implementation details:
- A component including a function annotated with `@oninit` must have an `Init()` function.
- If needed, add an empty `Init()` function where `@oninit` functions will be called
- An `Init()` function that will be calling `@oninit` functions must be included in only one component
- Let's explain why with an example:
- We have two components: `ComponentA` and `ComponentB`
- We have a script named `MyCompScript.bs` which has an `Init()` function
- We have a script named `MyBehaviour.bs` which has a function named `DoSomethingOnInit()` annotated with `@oninit`
-`ComponentA` includes `MyCompScript.bs` and `MyBehaviour.bs`
-`ComponentB` includes only `MyCompScript.bs`
- With this setup, the compiler will call `DoSomethingOnInit()` in the `Init()` function of `MyCompScript.bs`
-`ComponentA` would work fine
-`ComponentB` will have an error, since it doesn't include `MyBehaviour.bs`, but calls `DoSomethingOnInit()`
- For simplicity, the convention in this code base is to always keep the `Init()` function of a component in a bs file of the same name.
- For example, the `Init()` function of `MyComponent.xml` would live in `MyComponent.bs`
- functions with `@oninit` must have a name.
- functions with `@oninit` must have no arguments.
This plugin allows us to "bind" different node references together. It's a simple form of dependency injection to manage dependencies between nodes.
### Why
Consider a real (but simplified) example from Playlet Lib:
```xml
<ApplicationInfoid="ApplicationInfo"/>
<Invidiousid="Invidious"/>
<PlayletWebServer
id="WebServer"
port="8888"/>
```
The `Invidious` node is able to provide a link that will be used to login. Let's assume it is something like:
```bash
http://192.168.1.2:8888/invidious/login
```
`Invidious` needs to ask `PlayletWebServer` for the server url, and append `/invidious/login`.
To create the url, `PlayletWebServer` needs to get the local ip address from `ApplicationInfo`, to create a string in the form of `http://IP_ADDRESS:PORT`.
These different dependencies need to be managed somehow. Without plugins, a combintion of the following would be necessary:
-`m.top.findNode` (see [ifSGNodeDict.findNode](https://developer.roku.com/en-ca/docs/references/brightscript/interfaces/ifsgnodedict.md#findnodename-as-string-as-object))
- This is useful to find child nodes, but it is tricky to find parent or sibling nodes
- using the attribute `role` (see [Defining SceneGraph components](https://developer.roku.com/en-ca/docs/developer-program/core-concepts/xml-components/defining-scenegraph-components.md))
- This is also shortcut for assigning a child node to a field, and is pretty limited
- using the attribute value starting with `dictionary:` (see [Defining SceneGraph components](https://developer.roku.com/en-ca/docs/developer-program/core-concepts/xml-components/defining-scenegraph-components.md))
- The `dictionary:` is close in functionality to what we want, but it is heavily dependent on the order of the defined nodes, and pretty limited in terms of what it can do.
With this plugin, it is simple to assign the dependencies on each node by using special annotations:
```xml
<ApplicationInfoid="ApplicationInfo"/>
<Invidiousid="Invidious"
webServer="bind:../WebServer"/>
<PlayletWebServer
id="WebServer"
port="8888"
applicationInfo="bind:../ApplicationInfo"/>
```
And now `Invidious` has a reference to the `WebServer`, and the `WebServer` has a reference to the `ApplicationInfo`.
Nodes can reference other nodes they depend on by describing the path to reach said nodes.
### How
An important thing to know about nodes lifecycle is that child node get created and initialized first. This means when `Init()` gets called, the children of a node are ready, but the node itself is not attached to its parent yet.
This makes it difficult to prepare references between nodes at `Init()` time, if the nodes are siblings for example. This is why we introduce a different lifecycle event to nodes: `OnNodeReady()`.
With that in mind, let's dive into it.
#### Using the "AutoBind" component part
In the [Includes](#includes) plugin, we talked about how to include different parts into a component. For binding, the part `AutoBind` is required, since it contains the logic to do binding.
<!-- Tries to find a sibling to Node1, with a node ID "Node2" -->
<Groupid="Node1"field1="bind:../Node2"/>
<!-- Tries to find a sibling to Node2, with a node ID "Node1" -->
<Groupid="Node2"field1="bind:../Node1"/>
</children>
</component>
```
Note that even though it looks like this is not valid xml declarations, the plugin will take care of transpiling to correct SceneGraph components.
#### Defining paths
Paths are used in both types of bindings are used to describe the relative (or absolute) of the nodes. They are very similar to unix file system paths.
-`.` indicates the current node
-`..` indicates the parent node
-`/` indicates the scene node when used at the start of the path
- Anything else indicates the ID of the node we're looking for.
This means `/Node1/../Node2/./Node3` would translate to:
```brighterscript
node = m.top.getScene() ' "/"
node = node.findNode("Node1") ' "Node1"
node = node.getParent() ' ".."
node = node.findNode("Node2") ' "Node2"
node = node ' "."
node = node.findNode("Node3") ' "Node3"
```
Note that since we use `findNode`, it means finding a node by ID can dig multiple levels into a node.
#### Control flow
Let's go step by step on what happens at compile time, and at runtime.
First, the plugin generate a structure describing the bindings that need to be done, and generates this function
```brighterscript
@oninit
function InitializeBindings()
m.top.bindings = {
fields: {
"appController": "../AppController"
},
childProps: {
"Node1": {
"field1": "../Node2"
},
"Node2": {
"field1": "../Node1"
}
}
}
end function
```
Notice how the function has `@oninit`, which means it will be called in the `Init()` function.
When the `bindings` field is set, the node registers itself to a global array of nodes that need binding.
Next, once all nodes are registered, we need to call a function called `AutoBindSceneGraph()`. This need to be called once from the root node's `Init()` (concretely, [here in MainScene.bs](https://github.com/iBicha/playlet/blob/bea7fb209b2bd42aff620d06b416cf1e45988190/playlet-lib/src/components/MainScene.bs#L17))
`AutoBindSceneGraph()` will loop through all the nodes that require binding, and use the information we assigned to `m.top.bindings` of each node to populate all the needed references.
Next, all fields of type node will be added to the component scope `m`. This means if you have a field named `field1`, you can access it with `m.field1` in addition to `m.top.field1`. This is just for conveninece.
Finally, the `AutoBindSceneGraph()` will signal to all `AutoBind` nodes that bindings are ready, by setting the field `binding_done`, and calling the function `OnNodeReady()`
So in most cases, we use `Init()` as a first step of initialization where all child nodes are ready, but not all dependencies, while `OnNodeReady()` indicates that everything is ready for use, and that nodes can call dependency nodes.
#### Dynamically created nodes
We've talked about nodes that are mostly declared in the `xml` files. What about dynamically created nodes with the `CreateObject` function? There's a pattern for that as well:
```brighterscript
' Create a component
myNode = CreateObject("roSGNode", "MyComponent")
' Add it to the right parent
myParentNode.appendChild(myNode)
' Trigger the binding manually
myNode@.BindNode()
```
calling `BindNode` will trigger all the binding steps just for this node. But it is expected that all its dependencies are already in the scene and can be found.
The Job System simplifies the creation of background jobs without the risk of creating too many threads.
It manages a number of Tasks which are capable of executing jobs from a queue.
### Why
To implement functionality that runs in background threads, [Tasks](https://developer.roku.com/en-ca/docs/references/scenegraph/control-nodes/task.md) must be used.
Setting up a task involves lots of boilerplate: setting up the task in an xml file, defining inputs and outputs, code to listen for a task to finish, and so on.
Additionally, there's no standard way to do error handling and cancellation.
Another concern is managing too many threads across the application, and managing rendezvous(s).
### How
Define a function in its own file called `ExecuteJob` annotated with `@job("JobName")`:
```brighterscript
@job("MyJob")
function ExecuteJob() as void
' input is an associative array set when the job is queued.
input = JobGetInput()
value = DoWork(input.myVar)
' optional
JobSuccessData({result: value})
end function
```
by doing this, the generator will generate a component named "MyJob" and will inherit from "BaseJob".
And the job system will take care of queueing, scheduling, and scaling up the available tasks in order to execute jobs.
The job system creates job nodes inside task threads, which reduces the amount of rendezvous necessary. Some rendezvous are still necessary, such as when a task node is signaling that it is ready to take on a new job, or when the job is returning results to render thread.
The job system will auto scale up to a maximum number of tasks, in order to avoid `Too many threads` errors. Once the job system activity settles down, the job system will release task nodes that has been idle for a certain amount of time.
Although very useful, this pattern might not be the best for long running tasks (like the Web Server) and it is simpler to create dedicated tasks for those.
## Logger
**[Source](/tools/bs-plugins/logger-plugin.ts)**
### Why
The logger plugin does some code transformation to log calls, which can add caller path at compile time, or the filename, based on debug/release configuration.
### How
The logger plugin searches for calls to the predefined functions `LogError`, `LogWarn`, `LogInfo` and `LogDebug`. Once found, it does the following (we take `LogError` as an example):
- It replaces calls of `LogError` with `LogErrorX` where X is the number of arguments.
- For example, it replaces `LogError("Cannot complete operation:", error)` with `LogError2("Cannot complete operation:", error)`
- Based on usage, it generates `LogErrorX` functions used. Example:
- Finally, it adds the caller file and line number to the args.
-`LogError("Cannot complete operation:", error)` is replaced with `LogError(CALLER, "Cannot complete operation:", error)`
-`CALLER` would be the full path to the source .bs file and line number, for easier debugging
- In release mode, `CALLER` would be only the file name and line number, without the full path. This is so that dev directory does not get "leaked" in releases.
This is implemented to make it easy to identify where logs came from, and to generate log functions with the right number of parameters based on usage. This way we do not need all combination of functions (`LogError`, `LogWarn`, `LogInfo` and `LogDebug` multiplied by number of parameters, `LogError1`, `LogError2`, `LogError3`, and so on). Since brightscript does not support function templates or function overloading, it is either this method, or use optional parameters (but then we would have to check which parameter was passed, and which was is using the default value.) and end up with a log function with logs of if's else'es.
To understand more about what's being generated, download `playlet-lib.zip` from [releases](https://github.com/iBicha/playlet/releases), extract, and inspect the file `source/utils/Logging.brs`. You will see it contains log functions in the form `LogVerbX`, that are generated based on usage.
To give credit where credit is due, some of the ideas here (like adding the source location to the log) came from [roku-log](https://github.com/georgejecook/roku-log)
Handles routing annotations (e.g. `@get("/api/something")) so that they are handled by the routers/middlewares. It's nicer than having to register things by hand.
### How
Routers need to inherit from `Http.HttpRouter`. Then, once a request handled is annotated, e.g.
```bs
@get("/")
function GoHome(context as object) as boolean
response = context.response
response.Redirect("/index.html")
return true
end function
```
The route and the handler are added to the router. In this example, the `/` route redirects to `index/html`.
There one special annotation, and one special route:
- `@all` matches all methods
- `*` matches all paths
So `@all(*)` would be a middleware that will be matched with any request.
Roku's built-in localization system has some undesired side effects: for example, it might translate node ids, which would break the relationship between the nodes.
This plugin enforces some rules to ensure translation files are kept up to date with code implementation.
See the next section for the validation rules.
### How
The plugin checks for the following:
- Translated words and sentenses are defined in an enum annotated with `@locale`
- All the values in the `@locale` enums must be provided in the English (`en_US`) translation. This is because `en_US` is the fallback translation when the current localte translations are not complete.
- `en_US` must have matching source and translation values, so it can act as a fallback translation.
- All `source` translations from all languages must be present in the `@locale` enums. This is to prevent renaming the values in the code without updating translation files.
- Translation `source` keys can't be used except for certain fields such as `"text"` and `"title"`. This is to prevent the accidental localization of non-display fields, such as node ids.
To generate BrighterScript encoding/decoding functions for Protobuf types.
These are needed for some functionality (e.g. Search filters in Innertube backend)
### How
The plugin scans for `.proto` files, and parse them into plain objects using [protocol-buffers-schema](https://www.npmjs.com/package/protocol-buffers-schema)
Then the right functions that get generated to serialize/deserialize types.
Please note this generator is VERY bare bone: only features necessary for Playlet were implemented.
"description":"Unofficial Youtube client for Roku",
"dependencies":{
"bslib":"npm:@rokucommunity/bslib@^0.1.1",
"log":"npm:roku-log@^0.9.3",
"roku-requests":"^1.1.0"
},
"version":"0.44.1",
"description":"Unofficial YouTube client for Roku",
"devDependencies":{
"@rokucommunity/bslint":"^0.8.1",
"@types/node":"^18.11.18",
"@rokucommunity/bslint":"^0.8.38",
"@types/crypto-js":"^4.2.2",
"@types/fs-extra":"^11.0.4",
"@types/node":"^24.10.0",
"@types/xml2js":"^0.4.14",
"argparse":"^2.0.1",
"brighterscript":"^0.61.3",
"brighterscript-formatter":"^1.6.23",
"convert-svg-to-png":"^0.6.4",
"dotenv":"^16.0.3",
"express":"^4.18.2",
"ip":"^1.1.8",
"roku-log-bsc-plugin":"^0.7.0",
"ropm":"^0.10.11",
"semver":"^7.3.8",
"ts-node":"^10.9.1",
"typescript":"^4.9.5"
"brighterscript":"0.70.3",
"brighterscript-formatter":"^1.7.19",
"convert-svg-to-png":"^0.7.1",
"crypto-js":"^4.2.0",
"dotenv":"^17.2.3",
"fs-extra":"^11.3.2",
"glob":"^11.0.3",
"imap":"^0.8.19",
"ip":"^2.0.1",
"json5":"^2.2.3",
"mailparser":"^3.9.0",
"protocol-buffers-schema":"^3.6.0",
"puppeteer":"^24.29.1",
"roku-deploy":"^3.14.4",
"roku-test-automation":"^2.2.1",
"rooibos-roku":"5.15.5",
"rounded-rect-9patch":"^1.1.2",
"semver":"^7.7.3",
"shelljs":"^0.10.0",
"ts-node":"^10.9.2",
"typescript":"5.9.3",
"telnet-client":"^2.2.6",
"xml2js":"^0.6.2",
"yaml":"^2.8.1"
},
"engines":{
"node":"<19.0.0"
},
"ropm":{
"rootDir":"playlet-lib/src",
"noprefix":[
"roku-requests"
]
"node":"22"
},
"scripts":{
"dev:web":"cd playlet-web && npm run dev",
"prebuild":"rm -rf dist",
"build:dev":"npm run build:web && npm run build:lib:dev && npm run build:app:dev",
"build:prod":"npm run build:web && npm run build:lib:prod && npm run build:app:prod",
"build:release":"npm run format:fix && npm run lint:fix && npm run manifest-version && npm run generate-images && npm run build:prod && npm run sign-package",
"build:lib:dev":"npm run build:lib -- --debug=true",
"build:lib:prod":"npm run build:lib -- --debug=false --sourceMap=false",
"prebuild":"node tools/rm.js dist",
"build:dev":"npm run prebuild && npm run build:web && npm run build:lib:dev && npm run build:app:dev",
"build:prod":"npm run prebuild && npm run build:web && npm run build:lib:prod && npm run build:app:prod",
"build:release":"npm run prebuild && npm run format:fix && npm run lint:fix && npm run version-sync && npm run manifest-git-hash && npm run build:prod",
"build:app:dev":"cd playlet-app && npm run build:dev",
"build:app:prod":"cd playlet-app && npm run build:prod",
"build:lib:dev":"cd playlet-lib && npm run build:dev",
"build:lib:prod":"cd playlet-lib && npm run build:prod",
JobError("Failed to subscribe/unsubscribe to channel: " + response.ErrorMessage())
return
end if
channelView.isSubscribed = subscribe
end function
Loaded 100 of 833 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.