startSpeakerDeviceTest method
Start speaker test (Support for macOS and Windows platforms)
This method plays back the specified audio data to test whether the speaker can function properly. If sound can be heard, the speaker is normal.
Parameters:
filePath
Audio file path
Return:
0
: success; negative number: failure
Implementation
Future<int?> startSpeakerDeviceTest(String filePath
) async {
var result = await _channel.invokeMethod('startSpeakerDeviceTest', {
"filePath": filePath
});
return V2TXLiveFlutterResult.intValue(result);
}