From 39734a87e7e65552c8bb45fe4b6c6ecff8f901e0 Mon Sep 17 00:00:00 2001 From: gxz Date: Tue, 23 Jul 2024 15:33:44 +0800 Subject: [PATCH] chore: optimize --- .../impl/media_player_controller_impl.dart | 10 +++++++ tool/terra/terra_config_main.yaml | 26 +++++++++---------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/lib/src/impl/media_player_controller_impl.dart b/lib/src/impl/media_player_controller_impl.dart index 648416df9..775119b30 100644 --- a/lib/src/impl/media_player_controller_impl.dart +++ b/lib/src/impl/media_player_controller_impl.dart @@ -248,6 +248,16 @@ class MediaPlayerControllerImpl return _mediaPlayer!.setPlaybackSpeed(speed); } + @override + Future getPlayerOptionInInt(String key) { + return _mediaPlayer!.getPlayerOptionInInt(key); + } + + @override + Future getPlayerOptionInString(String key) { + return _mediaPlayer!.getPlayerOptionInString(key); + } + @override Future setPlayerOptionInInt({required String key, required int value}) { return _mediaPlayer!.setPlayerOptionInInt(key: key, value: value); diff --git a/tool/terra/terra_config_main.yaml b/tool/terra/terra_config_main.yaml index fb2dedf58..699d34340 100644 --- a/tool/terra/terra_config_main.yaml +++ b/tool/terra/terra_config_main.yaml @@ -3,17 +3,17 @@ parsers: package: '@agoraio-extensions/cxx-parser' args: includeHeaderDirs: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include' parseFiles: include: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/*.h' exclude: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/AgoraRefPtr.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/time_utils.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/AgoraOptional.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/AgoraRefPtr.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/IAgoraMediaComponentFactory.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/IAgoraParameter.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/AgoraRefPtr.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/time_utils.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/AgoraOptional.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/AgoraRefPtr.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/IAgoraMediaComponentFactory.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/IAgoraParameter.h' - name: IrisApiIdParser package: '@agoraio-extensions/terra_shared_configs' @@ -23,14 +23,14 @@ parsers: args: customHeaderFileNamePrefix: 'Custom' includeHeaderDirs: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include' parseFiles: include: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/*.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/custom_headers/*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/*.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/custom_headers/*.h' exclude: - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/time_utils.h' - - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1/include/IAgoraMediaComponentFactory.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/time_utils.h' + - '@agoraio-extensions/terra_shared_configs:headers/rtc_4.3.1.136/include/IAgoraMediaComponentFactory.h' - path: parsers/cud_node_parser.ts args: