feat: (for now android only!) dscp retrieval and configuration methods

This commit is contained in:
Andrew 2026-04-28 15:08:25 +07:00
parent 02cc6ad612
commit fa4207dbee
6 changed files with 104 additions and 6 deletions

View file

@ -2,6 +2,7 @@ import 'package:liblinphone_flutter/models/call_type.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'liblinphone_flutter_method_channel.dart';
import 'models/dscp_values.dart';
abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
/// Constructs a LiblinphoneFlutterPlatform.
@ -39,7 +40,9 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
String serverIp,
int serverPort,
) {
throw UnimplementedError('register() has not been implemented.');
throw UnimplementedError(
'register(String username, String password, String serverIp, int serverPort) has not been implemented.',
);
}
Future<bool> unregister() {
@ -52,14 +55,18 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
String notificationTitle,
String notificationMessage,
) {
throw UnimplementedError('makeCall() has not been implemented.');
throw UnimplementedError(
'makeCall(String callTo, bool isVideoEnabled, String notificationTitle, String notificationMessage) has not been implemented.',
);
}
Future<bool> answerCall(
String notificationTitle,
String notificationMessage,
) {
throw UnimplementedError('answerCall() has not been implemented.');
throw UnimplementedError(
'answerCall(String notificationTitle, String notificationMessage) has not been implemented.',
);
}
Future<bool> hangupCall() {
@ -91,7 +98,7 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
}
Future<bool> sendDtmf(String tone) {
throw UnimplementedError('sendDtmf() has not been implemented.');
throw UnimplementedError('sendDtmf(String tone) has not been implemented.');
}
Future<bool> stopCallService() async {
@ -99,7 +106,9 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
}
Future<bool> setMicGain(double level) async {
throw UnimplementedError('setMicGain() has not been implemented.');
throw UnimplementedError(
'setMicGain(double level) has not been implemented.',
);
}
Future<double> getMicGain() async {
@ -107,10 +116,22 @@ abstract class LiblinphoneFlutterPlatform extends PlatformInterface {
}
Future<bool> setPlaybackGain(double level) async {
throw UnimplementedError('setPlaybackGain() has not been implemented.');
throw UnimplementedError(
'setPlaybackGain(double level) has not been implemented.',
);
}
Future<double> getPlaybackGain() async {
throw UnimplementedError('getPlaybackGain() has not been implemented.');
}
Future<bool> setDscp(int sipDscp, int audioDscp, int videoDscp) async {
throw UnimplementedError(
'setDscp(int sipDscp, int audioDscp, int videoDscp) has not been implemented.',
);
}
Future<DscpValues> getDscp() async {
throw UnimplementedError('getDscp() has not been implemented.');
}
}