Skip to content

Commit

Permalink
Skip playing song by pressing replay button
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Aug 6, 2024
1 parent 59e0994 commit 7fa5fb7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.1",
"version": "1.0.2",
"configurations": [
{
"type": "brightscript",
Expand Down
2 changes: 1 addition & 1 deletion components/Radio/RadioGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ end sub
function onKeyEvent(key as string, press as boolean) as boolean
if not press then return false

if key = "OK"
if LCase(key) = "ok"
m.top.selectedRadio = m.top.content.getChild(m.top.itemFocused).id
return true
end if
Expand Down
8 changes: 8 additions & 0 deletions components/scenes/BaseScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,13 @@ function onKeyEvent(key as string, press as boolean) as boolean
return true
end if

if LCase(key) = "replay"
if not isEmpty(m.indexList)
m.audioPlayer.content = loadNextSong()
m.audioPlayer.control = PlaybackCommand.Play
return true
end if
end if

return false
end function
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title=Atse
major_version=1
minor_version=0
build_version=1
build_version=2

# Main Menu Icons
mm_icon_focus_fhd=pkg:/source/images/channel-poster_fhd.png
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "atse",
"type": "module",
"version": "1.0.1",
"version": "1.0.2",
"description": "A Jamendo client for Roku",
"dependencies": {
"@rokucommunity/bslint": "0.8.21",
Expand Down

0 comments on commit 7fa5fb7

Please sign in to comment.