Announcement

This commit is contained in:
Brahim Hadriche committed 2025-06-21 07:05:55 -04:00
1 parent 141c80c618
commit 5ea6e11345
5 files changed
+72 -21

No files matched your search

+17 -9
View File
@@ -33,7 +33,7 @@ function SetScenePalette(scene as object) as void
scene.palette = palette
end function
const HAS_ANNOUNCEMENT = false
const HAS_ANNOUNCEMENT = true
function MainSceneContainerChanged()
AutoBindSceneGraph()
@@ -62,18 +62,26 @@ function StartWebServer()
end function
function ShowAnnouncement() as boolean
deviceInfo = CreateObject("roDeviceInfo")
deviceName = deviceInfo.GetFriendlyName()
dialog = DialogUtils.ShowDialogOnce({
messageId: "1747362859"
title: "Announcement - YouTube account support"
messageId: "1750501488"
title: "Web app workaround"
message: [
"YouTube account support is now available in Playlet!"
`Subscriptions, playlists, watch history and "Recommended" are now available in the app.`
"If you encounter any issues, please report them on GitHub."
"https://github.com/iBicha/playlet/issues"
"Thank you."
"If you're experiencing issues playing videos, please consider this workaround while we work on a fix:"
]
bulletText: [
`Go to the "Remote" screen, and scan the QR code to open the web app in your browser.`
`Tap the video you want to play.`
`Select the "Play on ${deviceName} (ytjs)" button.`
]
bottomMessage: [
"Apologies for the inconvenience, and thank you for your patience!"
"Issue link: https://github.com/iBicha/playlet/issues/626"
]
alwaysOnTop: true
marginWidth: 180
large: true
})
if dialog = invalid