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

Waves not showing while playing uploaded songs #36

Open
JustinJusz opened this issue Apr 2, 2019 · 1 comment
Open

Waves not showing while playing uploaded songs #36

JustinJusz opened this issue Apr 2, 2019 · 1 comment

Comments

@JustinJusz
Copy link

Waves are not showing correctly . I am using the code shows below
` self.audioVisualizationView.gradientStartColor = .audioVisualizationPurpleGradientStart
self.audioVisualizationView.gradientEndColor = .audioVisualizationPurpleGradientEnd
//self.audioVisualizationView.
// Do any additional setup after loading the view.
self.audioVisualizationView.audioVisualizationMode = .read
self.audioVisualizationView.meteringLevels = [0.1, 0.67, 0.13, 0.78, 0.31]
//self.audioVisualizationView.scaleSoundDataToFitScreen()

    guard let url = Bundle.main.url(forResource: "Aln", withExtension: "mp3") else { return }
     self.audioPlayer = AVAudioPlayer(contentsOf: url)
    self.audioVisualizationView.play(for: self.audioPlayer!.duration)

`

Is the correct way.. ?

Screenshot 2019-04-02 at 2 33 29 PM

@bastienFalcou
Copy link
Owner

Hello @JustinJusz!

If I understand correctly, you are trying to play the representation of Aln.mp3 on the AudioVisualizationView correct?

This feature is unfortunately not supported at the moment, although it has been the #1 request so far. It will be implemented in priority 👍

Duplicate of #11 and #28. I will keep you updated once it is supported!

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

No branches or pull requests

2 participants