Unsupported key: supportsSessionProperty in audio library
when obtaining the supportsSessionProperty instead of return false:
if supportsSessionProperty == true then
audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)
end
AFAIK, there should be no side effects other than affecting the acquisition of the above properties.
However, it is still necessary to be cautious about merging, because it is possible to break previous usage, although the previous value is always wrong.
The metatable for Android
audio2
overwrites the metatable foraudio
, causing the following properties (obtained by __index) to get incorrectly:And an error prints:
when obtaining the
supportsSessionProperty
instead of returnfalse
:AFAIK, there should be no side effects other than affecting the acquisition of the above properties. However, it is still necessary to be cautious about merging, because it is possible to break previous usage, although the previous value is always wrong.
Tested with Media/AudioPlayer and the following new lines:
Related to: