Compare commits

...
32 Commits
Author SHA1 Message Date
Brahim Hadriche 0d61d1e337 Release v0.36.6 (#596) 2025-05-03 10:42:26 -04:00
Brahim Hadriche 33c6e174ee [chore] update dependencies (#595)
* update dependencies

* Bottom nav ui fix

* Bottom nav ui fix2

* changelog

* Backend logging
2025-05-03 10:34:40 -04:00
Brahim Hadriche 91b17fa4a4 Release v0.36.5 (#594) 2025-05-02 19:51:07 -04:00
Brahim Hadriche 943d39af33 Update innertube versions 2025-05-02 19:43:25 -04:00
Brahim Hadriche e8015d52ff Log unknown nodes better 2025-05-02 19:43:07 -04:00
Brahim Hadriche d919489f50 Fixed small error handling bug in Playlet backend 2025-05-01 22:18:23 -04:00
Brahim Hadriche 62675446b2 Update readme link and changelog 2025-04-29 22:28:23 -04:00
Brahim Hadriche 4a8b12294d Update README.md 2025-04-22 15:05:54 -04:00
Brahim Hadriche 5583f55aae Release v0.36.4 (#586) 2025-04-19 11:44:28 -04:00
Brahim Hadriche d4f15e7dfb update dependencies (#585) 2025-04-19 11:38:22 -04:00
Brahim Hadriche de7c3f8a99 update dependencies (#581) 2025-04-12 16:59:10 -04:00
Brahim Hadriche b35dc4423e changelog 2025-04-12 16:55:09 -04:00
Weblate (bot)anddavbrasan 23146706ee Translated using Weblate (Portuguese (Brazil)) (#582)
Currently translated at 100.0% (319 of 319 strings)

Translation: Playlet/Playlet
Translate-URL: https://hosted.weblate.org/projects/playlet/playlet/pt_BR/

Co-authored-by: davbrasan <davidbrazps2@gmail.com>
2025-04-12 16:54:34 -04:00
Brahim Hadriche d10444b96c changelog 2025-04-10 16:27:58 -04:00
Weblate (bot)andEttore Atalan 2f7ba64488 Translated using Weblate (German) (#580)
Currently translated at 100.0% (319 of 319 strings)

Translation: Playlet/Playlet
Translate-URL: https://hosted.weblate.org/projects/playlet/playlet/de/

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
2025-04-10 16:27:35 -04:00
Brahim Hadricheandgithub-action linter f1f50cc19e [chore] update dependencies (#579)
* update dependencies

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
2025-04-05 12:16:18 -04:00
Brahim Hadriche b3a9887634 [skip ci] remove announcement 2025-04-03 13:21:33 -04:00
Brahim Hadriche c56092144f [skip ci] changelog fix 2025-04-02 18:32:25 -04:00
Brahim Hadriche 750472912e Release v0.36.3 (#578) 2025-04-02 18:27:32 -04:00
Brahim Hadriche ae83c47bfe Fix bug with saving search history 2025-03-30 09:59:58 -04:00
Brahim Hadriche e08bc86334 update dependencies (#573) 2025-03-29 10:19:51 -04:00
Brahim Hadriche 10aaf74c38 update dependencies (#570) 2025-03-22 11:29:16 -04:00
Brahim Hadriche 79464a003e Fix Playlet backend parsing issue in search results 2025-03-17 19:52:51 -04:00
Brahim Hadriche f7b8aa6c29 Fix for web remote volume buttons being stuck when a Roku stick is used with Roku TV 2025-03-17 11:59:25 -04:00
Brahim Hadriche 59e378cc9c update dependencies (#568) 2025-03-17 11:57:53 -04:00
Brahim Hadriche a1c178830a [skip ci] update device script 2025-03-17 11:36:01 -04:00
Brahim Hadriche 173e6ffa6c Revert "Remove optional dep (#567)"
This reverts commit 207614ac5c.
2025-03-07 22:41:03 -05:00
Brahim Hadriche 207614ac5c Remove optional dep (#567) 2025-03-07 22:38:43 -05:00
Brahim Hadriche 5c7c6e83c3 update dependencies (#566) 2025-03-07 22:32:25 -05:00
Brahim Hadriche 9ceb1c8963 [chore] update dependencies (#565)
* update dependencies

* lock versions of bsc and daisyui
2025-03-02 14:33:32 -05:00
Brahim Hadriche 106a664c9f Transpiled files 2025-02-27 20:17:42 -05:00
Brahim Hadriche bd3ac7b9c1 App dialog signals to comply with certification 2025-02-27 20:16:58 -05:00
27 changed files with 1718 additions and 519 deletions

No files matched your search

+35 -1
View File
@@ -5,6 +5,40 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.36.6] - 2025-05-03
### Fixed
- Small UI bug in web app nav bar
- Backend logging to improve debugging
## [0.36.5] - 2025-05-02
### Fixed
- Small error handling bug in Playlet backend
## [0.36.4] - 2025-04-19
### Added
- Portuguese (Brazil) translations (Thanks to davbrasan)
### Removed
- Startup announcement dialog
### Fixed
- German translation (Thanks to Atalanttore)
## [0.36.3] - 2025-04-02
### Fixed
- Playlet backend parsing issue in search results
- Bug with saving search history
## [0.36.2] - 2025-02-28
### Added
@@ -20,7 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Session data persists for 24 hours
- It reduces the privacy of the app, but can help with `Sign in to confirm you're not a bot` errors
## Changed
### Changed
- Video queue view might be missing video titles and durations
- This is done to reduce the risk of rate limiting. No video titles in the queue is better than no videos playing at all.
+2 -2
View File
@@ -15,7 +15,7 @@
<a href="/LICENSE">
<img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/>
</a>
<a href="https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet">
<a href="https://channelstore.roku.com/details/4a41d0921265a5e31429a7679442153f:b5bcb5b630c28b01e93bf59856317b43/playlet">
<img alt="Roku Channel Store" src="https://img.shields.io/badge/Roku%20Store-Install-blueviolet?logo=roku&logoColor=blueviolet&labelColor=white"/>
</a>
<a href="https://github.com/iBicha/playlet/wiki">
@@ -40,7 +40,7 @@ More under [Screenshots](./docs/screenshots/README.md)
## Installation
[Playlet on Roku channel store](https://channelstore.roku.com/details/840aec36f51bfe6d96cf6db9055a372a/playlet) or search "Playlet" in the Roku channel store on your device.
[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)
+1 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.0.0
info:
title: Playlet Web API
version: 0.36.2
version: 0.36.6
description:
Playlet Web API is a RESTful API for controlling the Playlet app on
Roku devices. The API is intended to be used by the Playlet web app, but can
+575 -293
View File
File diff suppressed because it is too large. Load diff
+14 -13
View File
@@ -1,37 +1,37 @@
{
"name": "playlet",
"version": "0.36.2",
"version": "0.36.6",
"description": "Unofficial YouTube client for Roku",
"devDependencies": {
"@rokucommunity/bslint": "^0.8.28",
"@rokucommunity/bslint": "^0.8.29",
"@types/crypto-js": "^4.2.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.13.5",
"@types/node": "^22.15.3",
"@types/xml2js": "^0.4.14",
"argparse": "^2.0.1",
"brighterscript": "0.68.5",
"brighterscript-formatter": "^1.7.10",
"brighterscript-formatter": "^1.7.12",
"cheerio": "1.0.0-rc.11",
"convert-svg-to-png": "^0.6.4",
"crypto-js": "^4.2.0",
"dotenv": "^16.4.7",
"dotenv": "^16.5.0",
"fs-extra": "^11.3.0",
"glob": "^11.0.1",
"glob": "^11.0.2",
"imap": "^0.8.19",
"ip": "^2.0.1",
"json5": "^2.2.3",
"mailparser": "^3.7.2",
"protocol-buffers-schema": "^3.6.0",
"roku-deploy": "^3.12.4",
"roku-test-automation": "^2.0.10",
"rooibos-roku": "5.15.2",
"roku-test-automation": "^2.0.13",
"rooibos-roku": "5.15.7",
"rounded-rect-9patch": "^1.1.2",
"semver": "^7.7.1",
"shelljs": "^0.8.5",
"shelljs": "^0.9.2",
"ts-node": "^10.9.2",
"typescript": "5.7.3",
"typescript": "5.8.3",
"xml2js": "^0.6.2",
"yaml": "^2.7.0"
"yaml": "^2.7.1"
},
"engines": {
"node": "20"
@@ -66,14 +66,15 @@
"convert-images": "node tools/convert-images.js",
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,cheerio",
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,cheerio,brighterscript,daisyui",
"registry:write": "node tools/registry.js --input registry.json",
"registry:read": "node tools/registry.js --output registry.json",
"registry:clear": "node tools/registry.js --clear",
"restart-app": "node tools/restart-app.js",
"check-for-updates": "node tools/check-for-updates.js",
"shutdown": "node tools/shutdown.js"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.34.8"
"@rollup/rollup-linux-x64-gnu": "^4.40.1"
}
}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-app",
"version": "0.36.2",
"version": "0.36.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-app",
"version": "0.36.2"
"version": "0.36.6"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-app",
"version": "0.36.2",
"version": "0.36.6",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-app",
+1 -1
View File
@@ -3,7 +3,7 @@ title=Playlet
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=36
build_version=00002
build_version=00006
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "playlet-lib",
"version": "0.36.2",
"version": "0.36.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playlet-lib",
"version": "0.36.2"
"version": "0.36.6"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-lib",
"version": "0.36.2",
"version": "0.36.6",
"description": "Unofficial YouTube client for Roku",
"scripts": {
"prebuild": "rm -rf ../build/playlet-lib",
+13 -3
View File
@@ -40,7 +40,6 @@ function MainSceneContainerChanged()
InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache()
ShowAnnouncement()
end function
function StartWebServer()
@@ -54,8 +53,8 @@ function StartWebServer()
m.dialServer@.StartServer()
end function
function ShowAnnouncement()
DialogUtils.ShowDialogOnce({
function ShowAnnouncement() as void
dialog = DialogUtils.ShowDialogOnce({
messageId: "1736288537"
title: "Announcement - Playlet backend"
message: [
@@ -68,4 +67,15 @@ function ShowAnnouncement()
alwaysOnTop: true
marginWidth: 180
})
if dialog = invalid
return
end if
m.scene.signalBeacon("AppDialogInitiate")
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
end function
function OnAnnouncementDialogClosed()
m.scene.signalBeacon("AppDialogComplete")
end function
@@ -39,7 +39,6 @@ function MainSceneContainerChanged()
InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache()
ShowAnnouncement()
end function
function StartWebServer()
@@ -51,8 +50,8 @@ function StartWebServer()
m.dialServer.callfunc("StartServer", invalid)
end function
function ShowAnnouncement()
DialogUtils_ShowDialogOnce({
function ShowAnnouncement() as void
dialog = DialogUtils_ShowDialogOnce({
messageId: "1736288537"
title: "Announcement - Playlet backend"
message: [
@@ -65,5 +64,14 @@ function ShowAnnouncement()
alwaysOnTop: true
marginWidth: 180
})
if dialog = invalid
return
end if
m.scene.signalBeacon("AppDialogInitiate")
m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed))
end function
function OnAnnouncementDialogClosed()
m.scene.signalBeacon("AppDialogComplete")
end function
'//# sourceMappingURL=./MainScene.brs.map
@@ -5,10 +5,10 @@ const INNERTUBE_IOS_OS_VERSION = "18.1"
const INNERTUBE_IOS_USER_AGENT = "com.google.ios.youtube/19.49.7 (iPhone16,2; U; CPU iOS 18_1_0 like Mac OS X)"
const INNERTUBE_WEB_BROWSER_NAME = "Chrome"
const INNERTUBE_WEB_BROWSER_VERSION = "131.0.0.0"
const INNERTUBE_WEB_BROWSER_VERSION = "135.0.0.0"
const INNERTUBE_WEB_CLIENT_NAME = "1"
const INNERTUBE_WEB_CLIENT_VERSION = "2.20241230.09.00"
const INNERTUBE_WEB_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0"
const INNERTUBE_WEB_CLIENT_VERSION = "2.20250502.01.00"
const INNERTUBE_WEB_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0"
const INNERTUBE_TV_BROWSER_NAME = "LG Browser"
const INNERTUBE_TV_BROWSER_VERSION = "7.00.00"
@@ -41,6 +41,10 @@ namespace InnertubeService
playerRequest = Innertube.CreatePlayerRequest(videoId, ctt, visitorData)
playerRequest.Cancellation(cancellation)
if raw
playerRequest.LogCurlCommand()
playerRequest.NoCache()
end if
playerRequest.Send()
nextRequest = invalid
@@ -48,6 +52,10 @@ namespace InnertubeService
if fetchNext
nextRequest = Innertube.CreateNextRequest({ "videoId": videoId }, ctt)
nextRequest.Cancellation(cancellation)
if raw
nextRequest.LogCurlCommand()
nextRequest.NoCache()
end if
nextRequest.Send()
end if
@@ -227,9 +235,16 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest("FEtrending", Innertube.ClientType.WEB, params)
request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await()
if not response.IsSuccess()
return invalid
return {
error: response.ErrorMessage()
}
end if
if raw
@@ -291,7 +306,9 @@ namespace InnertubeService
response = request.Await()
if not response.IsSuccess()
return invalid
return {
error: response.ErrorMessage()
}
end if
json = response.Json()
@@ -321,6 +338,10 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest(channelId, Innertube.ClientType.Web, params, continuation)
request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await()
if not response.IsSuccess()
@@ -369,6 +390,10 @@ namespace InnertubeService
request = Innertube.CreateBrowseRequest(playlistId, Innertube.ClientType.Web, "", continuation)
request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await()
if not response.IsSuccess()
@@ -414,6 +439,10 @@ namespace InnertubeService
end if
request = Innertube.CreateNextRequest(args, "")
request.Cancellation(cancellation)
if raw
request.LogCurlCommand()
request.NoCache()
end if
response = request.Await()
if not response.IsSuccess()
@@ -1,3 +1,7 @@
' Throw an error if an unknown node is encountered.
' Only used in debug mode.
#const THROW_ON_UNKNOWN_NODES = true
import "pkg:/source/utils/Logging.bs"
import "pkg:/source/utils/ObjectUtils.bs"
import "pkg:/source/utils/StringUtils.bs"
@@ -21,7 +25,12 @@ namespace Innertube
for each key in nodeData
directive = directives[key]
if directive = invalid
LogWarn("Unknown node", key)
LogWarn("Unknown node", key, `\n`, FormatJson(nodeData[key]))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown node: " + key
#end if
#end if
continue for
end if
@@ -80,6 +89,10 @@ namespace Innertube
"horizontalCardListRenderer": ParseNotImplemented
' expandableTabRenderer contains the search tab with a channel. Ignored.
"expandableTabRenderer": ParseNotImplemented
' Shows a view of an official channel (like an artist) with tracks or albums.
' Shows up in search results. Safe to ignore since the channel itself will also
' be shown in the search results, so this is kind of a duplicate.
"officialCardViewModel": ParseNotImplemented
' Usually contains a "X unavailable video(s) are hidden" message. Ignored.
"messageRenderer": ParseNotImplemented
"clickTrackingParams": ParseNotImplemented
@@ -671,7 +684,12 @@ namespace Innertube
return LockupViewModelTypeAlbum(nodeData, context)
end if
LogWarn("Unknown content type:", contentType, `\n`, nodeData)
LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown content type: " + contentType
#end if
#end if
return invalid
end function
@@ -856,7 +874,12 @@ namespace Innertube
return TileRendererTypePlaylist(nodeData, context)
end if
LogWarn("Unknown content type:", contentType, `\n`, nodeData)
LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData))
#if THROW_ON_UNKNOWN_NODES
#if DEBUG
throw "Unknown content type: " + contentType
#end if
#end if
return invalid
end function
@@ -54,7 +54,13 @@ namespace SearchHistoryUtils
if history = invalid
return []
end if
return ParseJson(history)
history = ParseJson(history)
if not IsArray(history)
return []
end if
return history
end function
function Clear()
+1 -1
View File
@@ -1266,7 +1266,7 @@
</message>
<message>
<source>Buffering</source>
<translation type="unfinished">Puffert</translation>
<translation>Pufferung</translation>
</message>
<message>
<source>Do not show again</source>
@@ -1268,5 +1268,17 @@
<source>Add to %1 bookmark</source>
<translation>Adicionar %1 ao marcadores</translation>
</message>
<message>
<source>Courses</source>
<translation>Cursos</translation>
</message>
<message>
<source>Playlet built-in backend</source>
<translation>Back-end integrado do playlet</translation>
</message>
<message>
<source>Do not show again</source>
<translation>Não mostrar novamente</translation>
</message>
</context>
</TS>
+1 -1
View File
@@ -3,7 +3,7 @@ title=PlayletLib
# Do not update version manually, it is auto updated from package.json
major_version=0
minor_version=36
build_version=00002
build_version=00006
ui_resolutions=hd
uri_resolution_autosub=$$RES$$,480p,720p,1080p
+10 -1
View File
@@ -279,6 +279,11 @@ namespace HttpClient
return m
end function
function LogCurlCommand() as HttpRequest
m._logCurlCommand = true
return m
end function
function ToCurlCommand() as string
command = `curl "${m.BuildUrl()}"`
if m._method = "HEAD"
@@ -350,9 +355,13 @@ namespace HttpClient
LogInfo("Sending", m._method, m.urlTransfer.GetURL(), "ID:", m.urlTransfer.GetIdentity())
#if DEBUG
? `════════ curl command ════════\n${m.ToCurlCommand()}\n══════════════════════════════`
m._logCurlCommand = true
#end if
if m._logCurlCommand = true
LogInfo(`════════ curl command ════════\n${m.ToCurlCommand()}\n══════════════════════════════`)
end if
if m._method = "POST"
body = m._body
if body = invalid
+874 -169
View File
File diff suppressed because it is too large. Load diff
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "playlet-web",
"version": "0.36.2",
"version": "0.36.6",
"type": "module",
"scripts": {
"dev": "vite",
@@ -12,20 +12,20 @@
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"@tailwindcss/typography": "^0.5.16",
"@tsconfig/svelte": "^5.0.4",
"@vitejs/plugin-legacy": "^6.0.1",
"autoprefixer": "^10.4.20",
"@vitejs/plugin-legacy": "^6.1.1",
"autoprefixer": "^10.4.21",
"daisyui": "^4.12.23",
"dotenv": "^16.4.7",
"dotenv": "^16.5.0",
"ip": "^2.0.1",
"postcss": "^8.5.3",
"svelte": "^5.20.2",
"svelte-check": "^4.1.4",
"svelte": "^5.28.2",
"svelte-check": "^4.1.7",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17",
"terser": "^5.39.0",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"vite": "^6.1.1",
"typescript": "^5.8.3",
"vite": "^6.3.4",
"vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4"
}
+5 -2
View File
@@ -69,8 +69,11 @@
<LinkDragDrop />
<NavBar />
<!-- TODO:P2 a better way to make the BottomNavigation not hide screens -->
<div style="margin-bottom: 4rem">
<!--
Bottom navigation is of 4rem height, plus the safe area at the bottom.
Added so that bottom navigation does not overlap with the content.
-->
<div style="margin-bottom: calc(4rem + env(safe-area-inset-bottom))">
<SearchScreen visibility={currentScreen == "search"} />
<HomeScreen visibility={currentScreen == "home"} />
+2 -1
View File
@@ -49,7 +49,8 @@
}
</script>
<div class="btm-nav">
<!-- https://github.com/saadeghi/daisyui/issues/1732#issuecomment-1747818200 -->
<div class="btm-nav box-content">
<button
on:click={() => setScreen("search")}
class={$appStateStore.screen === "search" ? "active" : ""}
@@ -5,6 +5,7 @@
export let key: string;
export let icon;
export let small: boolean = false;
export let singlePressEvent: boolean = false;
let button;
@@ -37,11 +38,18 @@
let isDown = false;
function pressKeyDown() {
isDown = true;
ExternalControlProtocol.pressKeyDown(key);
if (singlePressEvent) {
ExternalControlProtocol.pressKey(key);
} else {
ExternalControlProtocol.pressKeyDown(key);
}
}
function pressKeyUp() {
isDown = false;
if (singlePressEvent) {
return;
}
ExternalControlProtocol.pressKeyUp(key);
}
@@ -153,9 +153,24 @@ And set it to "Enabled".`;
<RemoteButton key={BUTTONS.fwd} icon={FastForwardIcon} small />
</div>
<div class="flex space-x-2 m-1">
<RemoteButton key={BUTTONS.volumeMute} icon={VolumeMuteIcon} small />
<RemoteButton key={BUTTONS.volumeDown} icon={VolumeDownIcon} small />
<RemoteButton key={BUTTONS.volumeUp} icon={VolumeUpIcon} small />
<RemoteButton
key={BUTTONS.volumeMute}
icon={VolumeMuteIcon}
small
singlePressEvent
/>
<RemoteButton
key={BUTTONS.volumeDown}
icon={VolumeDownIcon}
small
singlePressEvent
/>
<RemoteButton
key={BUTTONS.volumeUp}
icon={VolumeUpIcon}
small
singlePressEvent
/>
</div>
<button
on:click={showRemoteNotWorkingDialog}
+53
View File
@@ -0,0 +1,53 @@
// Check for updates on Roku device
const rokuTestAutomation = require('roku-test-automation');
const ecp = rokuTestAutomation.ecp;
const utils = rokuTestAutomation.utils;
const Key = rokuTestAutomation.ECP.Key;
const getEnvVars = require('./get-env-vars');
const config = getEnvVars(['ROKU_DEV_TARGET']);
(async () => {
utils.setupEnvironmentFromConfig({
RokuDevice: {
devices: [{
host: config.ROKU_DEV_TARGET,
password: ''
}]
}
});
// Go to the home screen
await ecp.sendKeypress(Key.Home);
await utils.sleep(2000);
await ecp.sendKeypress(Key.Home);
await utils.sleep(2000);
// Settings menu
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(500);
// System
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(500);
// Software update
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Up);
await utils.sleep(500);
await ecp.sendKeypress(Key.Right);
await utils.sleep(2000);
// Check for updates
await ecp.sendKeypress(Key.Ok);
await utils.sleep(500);
})();