-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I was browsing through my old live wallpaper APKs and found a new feature that could be useful for this application. It's similar to the One Shot mode, but with more options, dependent on the device lock state.
Idea
- Phone Opened (Locked): A static image of the first frame is displayed.
- Device Unlocked: One Shot mode behavior. The video plays and stops on the last frame.
- Optional Feature: We could have an option to stick with the last frame until the next device unlock. See Issue: [Feature] One shot playback option #23
Here is a video as a visual example (compressed) of a video:
https://github.com/user-attachments/assets/945a75de-2fa5-4fc3-b018-2f1710e6c43f
We could even expand on this further and add more options:
- Phone Opened (Locked): The video starts playing until a specific point and then pauses.
- Device Unlocked: The video resumes, and follows One Shot mode behavior. It plays and stops on the last frame.
- Optional Feature: Option to stick with the last frame until the next device unlock. See Issue: [Feature] One shot playback option #23
Here is a video as a visual example (compressed) of a video:
https://github.com/user-attachments/assets/e7caf7d5-be2d-4368-87c9-8ec9d901d135
Update
I decompiled my old live wallpaper APKs and found they used the following intents
android.intent.action.USER_PRESENT
android.intent.action.SCREEN_OFF
android.intent.action.SCREEN_ON
along with the KeyguardManager (https://developer.android.com/reference/android/app/KeyguardManager)
if this can help.