Took some time today to revisit the NBC App and the "dimming" issue. For those unfamiliar, launching a deep link on the NBC app results in a dimmed screen. It seems the deep link puts the video in a transparent overlay mode, much like you will see when you bring up a menu and dimmed video will continue play in background. Essentially, the app launched with an invisible (or just missing) control menu on screen.
I determined you can clear dimming with a few remote commands, bringing up the live guide then exiting. Where this worked, I never bothered to try to automate it as AH4C has been running for well. Cruising through this thread, I noticed @turtletank added custom configs. Did some testing and now have a working solution.
Here is a copy of my NBC App Configuration. Create a new config to allow a unique UUID to be created, paste in the pertinent bits seen below.
{
"name": "NBC App",
"author": "spammedeeper",
"version": "0.1a",
"description": "Custom Activity for NBC App Dim Overlay Challenge with Deep Links. Tuned for reliablity, not tuning speed.",
"uuid": "xxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
"global_options": {
"wait_for_video_playback_detection": true,
"use_fixed_delay": false,
"fixed_delay_seconds": 0,
"check_for_and_clear_whos_watching_prompts": true
},
"pre_tune_commands": [
"input keyevent KEYCODE_MEDIA_STOP"
],
"tune_commands": [
"am start -W -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||' '||TARGET_PACKAGE_NAME||'",
"sleep 9",
"input keyevent 23",
"sleep 0.2",
"input keyevent 19",
"sleep 0.2",
"input keyevent 23",
"sleep 0.2",
"input keyevent 4",
"sleep 0.2",
"input keyevent 23"
],
"post_tune_commands": [
"input keyevent KEYCODE_MEDIA_STOP",
"input keyevent KEYCODE_MEDIA_PAUSE",
"input keyevent 3",
"input keyevent 26"
]
}
Here is what my config does, starting with tune_commands:
- Launches NBC App with Channel Deep Link as Normal
- Under "tune_commands" introduces a slight delay to allow the apps Buffer Circle to finish.
- Pauses the video (Key Event 23, Select/Enter on DPAD)
- Inputs Up on DPAD (Key Event 19) to highlight the Live Guide Button
- Selects Live Guide (Key Event 23, Select/Enter on DPAD)
- Inputs BACK to exit Live Guide (Key Event 4)
- Resume/Unpause the Video (Key Event 23)
When the live guide is exited, it removes all overlays on the screen, along with all dimming. The video is normal contrast and brightness.
Around each keyevent is a SLEEP setting. The first SLEEP pauses any attempt at remote input until the video is done buffering. The guide is not available until the stream is fully buffered. If the keyinput starts too soon, the process will fail. The pause also stops any audio from being detected so your recording won't have a bunch of visible button movement. My ONN 4k needs an initial sleep of 9, where the newer Onn 4K PLUS needs about 6. You will just need to test what is best for your setup.
In between keyevents is a small delay, which I found necessary for reliable input. The SLEEP settings will need to be tailored to your device.
The settings in post_tune_commands are unique to my setup. Most of my TV watching is recordings, so I don't needs fast tuning. I find shutting down the Android streamers after tuning to make them more reliable for future recording. If you prefer faster tuning, or don't want to sleep your Android devices, remove the following two lines for HOME, then POWER button:
"input keyevent 3",
"input keyevent 26"
My testing so far has only been a few hours, so I'd love for others to try. This test was done on Android 14, Onn 4K streaming boxes with the current NBC app. Tune time is about 8-12 seconds, depending on device.
I will continue to test and report back anything interesting. I'm curious if Ethernet devices will have batter turning speed, getting past the initial buffer faster than my WiFi test devices.
Happy Streaming.
EDIT: Grammar.
UPDATE: Further testing on the long sleep setting in tune_commands showed the live guide in/out trick MAY work with the sleep completely removed. This actually cleared the dimming before the Buffer Circle finished. Worked well on my ONN 4K Plus, not as reliable the older Onn 4K. This worked while device was NOT sleeping. Coming out of sleep delays the in/out trick, does not clear dimming reliably. Network and Internet has an impact, so something you can try during your own testing.