audioplayers icon indicating copy to clipboard operation
audioplayers copied to clipboard

Getting resetDrmState in android when try to play local audio

Open thegayankalinga opened this issue 2 years ago • 2 comments

Getting Below Error when try to play the local sounds in android (app loads without issue) The same code works without any issue in iOS Also please note sounds are not coming for android

V/MediaPlayer( 4114): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 4114): cleanDrmObj: mDrmObj=null mDrmSessionId=null

Full Description void playSound(int soundNumber) { final player = AudioCache(); player.play('note$soundNumber.wav'); }

Code to Reproduce void playSound(int soundNumber) { final player = AudioCache(); player.play('note$soundNumber.wav'); }

Screenshots If applicable, add screenshots or video recordings to help explain your problem. This is totally optional.

Platforms OS: android ext.kotlin_version = '1.5.30'

  • flutter version: 2.5 16th September 2021
  • audioplayers version: 0.20.1

thegayankalinga avatar Sep 16 '21 04:09 thegayankalinga

i want to know the file type that should be kept for audio files in assets folder

raviteja213 avatar Jul 23 '22 06:07 raviteja213

image please check this and tell me the error

raviteja213 avatar Jul 23 '22 06:07 raviteja213

I'm having this same issue. Did you manage to solve it?

Aphosishiro avatar Sep 23 '22 07:09 Aphosishiro

@bg15407 @raviteja213 @Aphosishiro these logs are coming from native MediaPlayer and most likely don't have anything to do with not playing the sound.

Can you try with AudioPlayers > 1.x.x? AudioCache also doesn't provide the play method anymore...

Gustl22 avatar Jan 21 '23 16:01 Gustl22