Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
EnTerr
Level 8

What's a PlayOnly?

There is a "playonly_aware" attribute that can be manifested:
"http://sdkdocs.roku.com/display/sdkdoc/Manifest+File" wrote:
playonly_aware (Integer) = Set to 1 to specify the application responds to the Play Only remote control button event. If not set, the application will receive the Play event instead when the user selects the button

What is Play Only button and where can i encounter it?
0 Kudos
8 Replies
RokuMarkn
Level 7

Re: What's a PlayOnly?

PlayOnly refers to the Play button on a remote which has separate buttons for Play and Pause. I don't believe that any Roku products have such a remote, but the situation can arise when using a TV's native remote with the MHL stick.

--Mark
0 Kudos
EnTerr
Level 8

Re: What's a PlayOnly?

Aha!
So if playonly_aware is manifested, then the app on use of standalone "Play" button via CEC will receive roUniversalControlEvent with code^ different than 13 (the usual Play/Pause) ? And maybe the same is for the standalone Stop button?

(^) shot in the dark: maybe these codes are 11 and 12
0 Kudos
Komag
Level 9

Re: What's a PlayOnly?

11 is Backspace, dunno about 12
0 Kudos
RokuMarkn
Level 7

Re: What's a PlayOnly?

The PlayOnly code is 22. If playonly_aware is not set, this is remapped to 13.

--Mark
0 Kudos
EnTerr
Level 8

Re: What's a PlayOnly?

"Komag" wrote:
11 is Backspace, dunno about 12

What is "Backspace"?
Remote's "Back" button is 0.
0 Kudos
Komag
Level 9

Re: What's a PlayOnly?

used for virtual keyboard entry, like backspace key on keyboard (I assume). I can't remember where I found that out - I only ever used it as a meaningless entry to stave off the screensaver!
0 Kudos
EnTerr
Level 8

Re: What's a PlayOnly?

"Komag" wrote:
used for virtual keyboard entry, like backspace key on keyboard (I assume). I can't remember where I found that out - I only ever used it as a meaningless entry to stave off the screensaver!

Oh, you meant ECP? Genius! Here, i collected some codes:
/keypress/Backspace     = 11
/keypress/Search = 12
/keypress/Play = 13 'also PlayOnly by default
/keypress/Enter = 15
/keypress/PlayOnly = 22 'when `playonly_aware` manifested
/keypress/Stop = 23
/keypress/VolumeUp = 24
/keypress/VolumeDown = 25
/keypress/VolumeMute = 1114113 '0x110001
/keypress/ChannelUp = 1114134
/keypress/ChannelDown = 1114135
/keypress/Sleep = 1114138
/keypress/Game = 1114139


Btw @RokuMarkn - while exercising above, seems somehow i wedged the player into a bizarre state, in which the Home button won't work (by physical remote or ECP), while all the other remotes did work. Ultimately i had to power-cycle it.
0 Kudos
Roku Employee
Roku Employee

Re: What's a PlayOnly?

Just a note... PlayOnly is "documented" in bslCore.brs:

BUTTON_PLAY_ONLY_PRESSED : 22

Some of the other buttons are not intended for app use, and aren't documented there.
0 Kudos