Skip to content

[Feature] New playback mode, Lock screen dependent #24

@kitsumed

Description

@kitsumed

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

  1. Phone Opened (Locked): A static image of the first frame is displayed.
  2. Device Unlocked: One Shot mode behavior. The video plays and stops on the last frame.
  3. 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:

  1. Phone Opened (Locked): The video starts playing until a specific point and then pauses.
  2. Device Unlocked: The video resumes, and follows One Shot mode behavior. It plays and stops on the last frame.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions