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

I can play audio file but I can't see the waveform at all. #36

Open
farman05 opened this issue Jul 29, 2018 · 9 comments
Open

I can play audio file but I can't see the waveform at all. #36

farman05 opened this issue Jul 29, 2018 · 9 comments

Comments

@farman05
Copy link

farman05 commented Jul 29, 2018

<WaveForm
source={{uri:'http://abc.mp3'}}
play={true}
waveFormStyle={{waveColor:'red', scrubColor:'blue'}}
style={{ width: 500, height: 50 }}
/>

@swati-kholiya
Copy link

Same here. Able to play audio but not able to see the waveforms.

@geraintwhite
Copy link
Contributor

geraintwhite commented Aug 16, 2018

Try flex: 1 in style.

@geraintwhite
Copy link
Contributor

I can confirm the waveforms show on iOS but not Android.

@qaisar-arkhitech
Copy link

I can confirm the waveforms show on iOS but not Android.

me to.

@qaisar-arkhitech
Copy link

@juananime: can you elaborate here any extra setting for android platform, where we missed here.

<WaveForm style={this.props.style} source={this.props.source} stop={this.props.stopAudio ? true : false} play={this.props.playAudio ? true : false} autoPlay={this.props.autoPlay} waveFormStyle={{ waveColor: this.props.waveFormStyle.waveColor, scrubColor: this.props.waveFormStyle.scrubColor }} />

@qaisar-arkhitech
Copy link

@juananime audiowaveform issue is sorted out. its related to compileSdkVersion version, last time I updated android:targetSdkVersion="22" to android:targetSdkVersion="26" in AndroidManifest.xml but audiowaveform use 23 https://github.com/juananime/react-native-audiowaveform/blob/master/android/build.gradle that why its not showing up. this issue related to compileSdkVersion difference. and google play accepted 26 compileSdkVersion to upload app on app store. please update this plugin asap.

@GrinchakAndrew
Copy link

Has this issue been addressed?

@rushant11
Copy link

Try flex: 1 in style.

yes it works with flex 1

@rushant11
Copy link

Has this issue been addressed?

waveform not showing is not a big deal, after adding flex 1 it shows but it crashing app in ios, which has no solution at all, try to find different lib, and if u find ping me.

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

No branches or pull requests

6 participants