teodorpatras / Jukebox

Player for streaming local and remote audio files. Written in Swift.
MIT License
552 stars 122 forks source link

Using Jukebox in another library as avaudioplayer ?! #54

Open fadylateef opened 7 years ago

fadylateef commented 7 years ago

Hello, First thanks for great player . I'd like to use iOS Animated Waveform Library with jukebox. It is initialized with avaudioplayer item , so when I use waveform.start(&jukebox.player) it gives an error 'player is inaccessible due to internal protection level'

Thanks

UPDATE : I've managed to access the library files, but the problem now is Cannot convert value of type AVPlayer into AVAudioPlayer

RajChanchal commented 7 years ago

waveform.start: method expects AVAudioPlayer as its param, while the property JukeBox.player is AVPlayer!! Customize the WavformView.swift class to make it use AVPlayer, instead of AVAudioPlayer. Or you can use following codes to serve your purpose: https://github.com/jameswomack/Ominus https://github.com/rFlex/SCWaveformView

fadylateef commented 7 years ago

I can not customize the wavformview.swift Also, libraries you linked are for Obj-c and gives waves for full audio length not animating for current audio strength .