Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add very primitive "Play to secondary screen" feature #36

Open
wants to merge 2 commits into
base: androidx
Choose a base branch
from

Conversation

phhusson
Copy link
Contributor

It is extremely primitive, because:

  • There is no way to control what happens to player (even stop it)
  • Trying to play another video on first screen fails because there is only one player at a time,
    and CLEAR_TASK clears tasks only on same screen
  • Resume flag is forced to "read from beginning"

Tested on ROG Phone 3, using USB-C secondary screen running Android 11

It is extremely primitive, because:
- There is no way to control what happens to player (even stop it)
- Trying to play another video on first screen fails because there is only one player at a time,
and CLEAR_TASK clears tasks only on same screen
- Resume flag is forced to "read from beginning"

Tested on ROG Phone 3, using USB-C secondary screen running Android 11
This creates a notification to expose the MediaSession on smartphones
This adds supports for playpause and seek

Known issue:
- Notification is never removed
- There is no way to kill the player with this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant