아래와 같이 byte array로 전달 받은 data를 local에 file로 저장하여 media player에서 재생시에

03-08 01:45:56.366: ERROR/PlayerDriver(31): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported
03-08 01:45:56.366: ERROR/MediaPlayer(217): error (1, -4)
 위와 같은 로그와 함께 재생 실패합니다.

MediaPlayer.setDataResource에 전달되는 file Path는 "/data/data/com.xxx.xxx/cache/sampleFile.wav" 이런 식입니다.

SD card에 저장해서 재생하게 되면 정상적으로 재생되구요.
혹시나 file write가 잘못되었나 싶어 ddms로 해당 파일을 뽑아서 pc에서 재생 해 보았는데 잘 동작합니다.

ByteArrayInputStream inStream = new ByteArrayInputStream(nRawData);
  
File cacheDir = getCacheDir();
        
File tmpFile = null;
 try {
  tmpFile = File.createTempFile("sampleFile.wav", null, sampleDir);
 } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
  
OutputStream outStream = null;
  try {
   outStream = new FileOutputStream(tmpFile);
  } catch (FileNotFoundException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
  
        byte buf[]=new byte[(int)nDataSize];
        int len;
        try {
   while((len=inStream.read(buf))>0)
    outStream.write(buf,0,len);
   outStream.close();
   inStream.close();
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }

     MediaPlayer mMediaPlayer = new MediaPlayer();
     mMediaPlayer.setDataSource(tmpFile.getAbsolutePath());
        mMediaPlayer.prepare();
        mMediaPlayer.start();