Help with app/overlay
Help with app/overlay
I am trying to get youtube to just work in full screen with a way to go back to the main screen from the touch screen, I got the example for the idle screen to work, but i can not figure out for the life of me where to go from there. Any helps appreciated. Thank you
Re: Help with app/overlay
It will be easiest to do this using separate overlays and an application. One overlay will be used to display YouTube in full screen and the second one for the "Go Home" icon. Both overlays will be configured to appear only on a specific application (e.g., a dummy YouTube app).
You can create the Go Home button (in HTML/JS using the Hudiy API) based on an example such as go_back.html or simply use the go_back.html directly. The HTML/JS utilizing the API should be served via an HTTP server due to the Same Origin Policy - https://developer.mozilla.org/en-US/doc ... gin_policy.
https://github.com/wiboma/hudiy/tree/ma ... javascript
https://github.com/wiboma/hudiy/blob/ma ... _back.html
Here is an example configuration:
applications.json
applications_menu.json
overlays.json
You can create the Go Home button (in HTML/JS using the Hudiy API) based on an example such as go_back.html or simply use the go_back.html directly. The HTML/JS utilizing the API should be served via an HTTP server due to the Same Origin Policy - https://developer.mozilla.org/en-US/doc ... gin_policy.
https://github.com/wiboma/hudiy/tree/ma ... javascript
https://github.com/wiboma/hudiy/blob/ma ... _back.html
Here is an example configuration:
applications.json
Code: Select all
{
"action": "youtube_app",
"controlAudioFocus": false,
"audioStreamCategory": "NONE",
"allowBackground": false
}
Code: Select all
{
"categories": [
"Music"
],
"iconFontFamily": "Material Symbols Rounded",
"iconName": "music_video",
"action": "youtube_app",
"label": "YouTube"
}
Code: Select all
{
"identifier" : "youtube_overlay",
"action" : "youtube_app",
"width" : "100vw",
"height" : "100vh",
"x" : 0,
"y" : 0,
"visibility" : "ALWAYS",
"url" : "https://youtube.com",
"controlAudioFocus" : true,
"audioStreamCategory" : "ENTERTAINMENT",
"visibleOnActions" : [
"youtube_app"
],
"staticPosition" : true
},
{
"identifier" : "go_home_button",
"action" : "",
"width" : "7vw",
"height" : "7vw",
"x" : 0,
"y" : 0,
"visibility" : "ALWAYS",
"url" : "http://127.0.0.1:12345/go_home.html",
"controlAudioFocus" : false,
"audioStreamCategory" : "NONE",
"visibleOnActions" : [
"youtube_app"
],
"staticPosition" : false
}
You do not have the required permissions to view the files attached to this post.
Hudiy Team
Re: Help with app/overlay
not sure why I couldn't load the home button. however, when tried view using the browser, I get to see the home icon via when loaded 127.0.0.1:12345/go_home.html. also the navigation keys like (1,2, arrow keys) are not functioning when it is on youtube. am I right?
You do not have the required permissions to view the files attached to this post.
Re: Help with app/overlay
External websites will not support scroll (1, 2) and d-pad (left, right, up, down) controls. Regarding the home button, the URL was likely unreachable from Hudiy - the HTTP server is either down or was started after Hudiy tried to load the URL.
Hudiy Team