Open gimenezfrg opened 4 years ago
The problem only happens with Xiaomi devices, as far as I could tell they don't touch .WAV
someone?
I have had this problem for a while now -- everything works fine on Samsung and Pixel devices but throws this error on OnePlus, Xperia and Xiaomi devices.
I've just noticed that I have the same issue on a OnePlus while it worked just fine on other devices like Pixel 2 and Samsung
Any updates?
I don't have access to any of these devices unfortunately.
You can try v1.5 which is using the newer Android SDK.
Solved by adding second silent channel, thus converting mono to stereo. And everything works. Issue is not related to plugin itself
@adrianstevens, on the version 1.5 the same problem exists. @vladikKBR85, could you share your solution? I don't understand what exactly did you do?
@vladikKBR85, could you share your solution? I don't understand what exactly did you do?
The underlying native android player fails to load monophonic sound for a some reason. I had to convert it to stereophonic sound on the server side. Using NAudio it should be something like:
using (var inputReader = new WaveFileReader(stream)){
var stereo = new MonoToStereoSampleProvider(inputReader.ToSampleProvider());
stereo.LeftVolume = 0.0f; // silence in left channel
stereo.RightVolume = 1.0f; // full volume in right channel
WaveFileWriter.WriteWavFileToStream(retStream, stereo.ToWaveProvider());
return retStream.ToArray();
}
Hello, I'm using this component and it's working normally on several devices, but not on two devices with Android 10.
One of them is a Xiaomi Mi 9 SE, I debugged the device and got this error:
On my virtual machine running Android 10 it works normally.
Can someone help me?