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

When deploying a web app using the audio player to firebase, there is a problem that duration cannot be imported only from iOS platforms. #1777

Open
2 tasks done
kang86h opened this issue Mar 21, 2024 · 1 comment
Labels

Comments

@kang86h
Copy link

kang86h commented Mar 21, 2024

Checklist

  • I read the troubleshooting guide before raising this issue
  • I made sure that the issue I am raising doesn't already exist

Current bug behaviour

If deploy a web app using the audio player to firebase, you will not be able to read the duration of the assets file only on iOS.

https://testaudio-e37f9.web.app

This link is a copy of the code of your example app exactly and hosted on firebase.

On PC and Android platforms, duration is displayed normally, but on iOS platforms, audio files are played normally, but duration is not displayed.

As a result, the slider widget cannot also be manipulated.

audioplayer.issue.MOV

Attached is a video that shows that I did not receive duration information from the audio player hosted on my iPhone and that the slider widget did not move.

Expected behaviour

It must be able to get the duration of the audio player from the web accurately even after hosting a web application using the audio player to firebase.

Steps to reproduce

https://github.com/bluefireteam/audioplayers/tree/main/packages/audioplayers/example

Deploy to firebase using the code in the example you posted on your github.

Enter the address hosted on the device on the iOS platform, setSource the audio file, and verify that the duration information is not received.

Code sample

https://github.com/bluefireteam/audioplayers/tree/main/packages/audioplayers/example

I used this code exactly as it was.

Affected platforms

iOS

Platform details

iOS 17.3.1 in iPhone 15 Pro,
iOS 17.1.2 in iPhone 11,
iPadOS 17.1.2 in iPad Pro 12.9(4th gen)

AudioPlayers Version

5.2.1, 6.0.0

Build mode

release

Audio Files/URLs/Sources

https://github.com/bluefireteam/audioplayers/blob/main/packages/audioplayers/example/assets/nasa_on_a_mission.mp3
I used the file in these assets as it is.

Screenshots

https://github.com/
photo_2024-03-21_21-42-18
bluefireteam/audioplayers/assets/90103152/0c3f1d85-df93-4901-8279-13c169106386

Logs

my relevant logs
Full Logs
my full logs or a link to a gist

Flutter doctor:

Output of: flutter doctor -v

Related issues / more information

No response

Working on PR

no way

@kang86h kang86h added the bug label Mar 21, 2024
@Omario64
Copy link

Omario64 commented Apr 4, 2024

Having the same issue, tested on an iPhone 15 Pro Max running iOS 17 and iPhone 13 Pro Max running iOS 15. (Apple M3 Pro)
Works fine on Android

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

No branches or pull requests

2 participants