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

Abstracting away media player #4579

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

rapterjet2004
Copy link
Contributor

@rapterjet2004 rapterjet2004 commented Jan 7, 2025

🖼️ Screenshots

Example of background play
// TODO update screenshot

🚧 TODO

  • Add functionality to MediaPlayerManager
  • Create Background Voice Message View
  • Rewrite ChatActivity to use MediaPlayerManager
    • play
    • stop
    • pause
    • seek
  • Resumes playback of VoiceMessages on screen rotation
  • Continue playing a voice message in background
    • Bug: Enter into the original conversation after lifecycle change. Seek Bar not updated.
    • Bug: After orientation change. Seek Bar not updated. Scope is canceled.
  • Implement Voice Message card
    • play
    • close
    • pause
    • avatar
    • animation
  • Auto play consecutive audio messages
    • prefetch audio messages
    • show fetched audio durations
    • temporarily mark as listened audio messages
  • Get playback speed controls working
    • bug: Works, but UI doesn't update ( check cycling too )
  • Test it out with Voice Recording Message Input Fragment

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@rapterjet2004 rapterjet2004 added the 2. developing Work in progress label Jan 7, 2025
@rapterjet2004 rapterjet2004 self-assigned this Jan 7, 2025
Copy link
Contributor

github-actions bot commented Jan 7, 2025

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4579-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

Copy link
Contributor

github-actions bot commented Jan 7, 2025

Codacy

Lint

TypemasterPR
Warnings158158
Errors7171

SpotBugs

CategoryBaseNew
Bad practice66
Correctness222226
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total310314

SpotBugs increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abstract away the MediaPlayer logic in ChatActivity to MediaPlayerManager
1 participant