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

Android Auto - live stream display duration error #1191

Open
ivanoe83 opened this issue Feb 17, 2024 · 1 comment
Open

Android Auto - live stream display duration error #1191

ivanoe83 opened this issue Feb 17, 2024 · 1 comment
Assignees
Labels
1 backlog bug Something isn't working

Comments

@ivanoe83
Copy link

Which API doesn't behave as documented, and how does it misbehave?
Not sure about "JustAudioBackground MediaItem class - duration"

We have a live streaming radios app. When we connect the phone to Android Auto and launch play, in addition to displaying the metadata of cover, title and author, despite not being entered the duration indicator in seconds is displayed.
The main problem is that the seconds appear and disappear making the metadata "jump around"

Minimal reproduction project
"The example"

To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:

  1. Connect to Android Auto
  2. Play

Error messages

 No error messages shown

Expected behavior
We would like the duration not to be displayed, but I haven't found how to do

Screenshots
Attached a video of the problem

androidAuto-duration-secondviews.mov

Desktop (please complete the following information):

  • OS: macOS Ventura 13.4

Smartphone (please complete the following information):

  • Device: Xiaomi POCO F4 GT cf2b79cc

Flutter SDK version

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.0, on macOS 13.4 22F66 darwin-arm64 (Rosetta),
    locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

Additional context
Sorry if I have omitted anything, but this is my first "issue"

@ivanoe83 ivanoe83 added 1 backlog bug Something isn't working labels Feb 17, 2024
@itseramin
Copy link

I'm trying to play back audio live streams too, I already wrote the platform specific code to establish a connection to a SRT server to retrieve the MP3 audio frames as byte arrays. What I need guidance in is to feed the bytes to an AudioSource. Any chance you can explain to me how did you manage to playback the raw audio bytes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants