Skip to content

Commit

Permalink
Merge pull request #15 from aabytt/stopped-status-fix
Browse files Browse the repository at this point in the history
Stopped status fix
  • Loading branch information
aabytt authored Jun 12, 2024
2 parents e72a3b6 + 2393835 commit e87c911
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appinfo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "org.aabytt.webos.custom-screensaver-aerial",
"version": "1.0.7",
"version": "1.0.8",
"vendor": "aabytt",
"title": "Aerial Screensaver",
"icon": "assets/icon130.png",
Expand Down
10 changes: 8 additions & 2 deletions assets/screensaver-main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,15 @@ WebOSWindow {
var playbackState = 'playing'
else if (videoOutput.playbackState === 2)
var playbackState = 'paused'
else if (videoOutput.playbackState === 0)
else if (videoOutput.playbackState === 0){
var playbackState = 'stopped'

stalledCounter ++
if (stalledCounter > 5) {
punchThroughArea.visible = false
playRandomVideo()
}
}

debug.text = "Video " + randomIndex + " of " + playList.assets.length +
"\n Source Type: " + settings.sourceType + sourceAlt +
"\n Try Other Source: " + settings.playLowerQuality +
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.aabytt.webos.custom-screensaver-aerial",
"version": "1.0.7",
"version": "1.0.8",
"main": "frontend/index.js",
"moduleDir": "frontend",
"scripts": {
Expand Down

0 comments on commit e87c911

Please sign in to comment.