Add multi-resolution playback support
This commit is contained in:
@@ -43,11 +43,24 @@ class ApiService {
|
||||
);
|
||||
}
|
||||
|
||||
Future<http.Response> changePassword(String oldPassword, String newPassword) async {
|
||||
Future<http.Response> getPlaybackOptions(String roomId) async {
|
||||
return await http.get(
|
||||
Uri.parse("${settings.baseUrl}/api/rooms/$roomId/playback-options"),
|
||||
headers: _headers,
|
||||
);
|
||||
}
|
||||
|
||||
Future<http.Response> changePassword(
|
||||
String oldPassword,
|
||||
String newPassword,
|
||||
) async {
|
||||
return await http.post(
|
||||
Uri.parse("${settings.baseUrl}/api/user/change-password"),
|
||||
headers: _headers,
|
||||
body: jsonEncode({"old_password": oldPassword, "new_password": newPassword}),
|
||||
body: jsonEncode({
|
||||
"old_password": oldPassword,
|
||||
"new_password": newPassword,
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user