Skip to content

Commit

Permalink
chore: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jul 23, 2024
1 parent 0d282b2 commit 39734a8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
10 changes: 10 additions & 0 deletions lib/src/impl/media_player_controller_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ class MediaPlayerControllerImpl
return _mediaPlayer!.setPlaybackSpeed(speed);
}

@override
Future<int> getPlayerOptionInInt(String key) {
return _mediaPlayer!.getPlayerOptionInInt(key);
}

@override
Future<String> getPlayerOptionInString(String key) {
return _mediaPlayer!.getPlayerOptionInString(key);
}

@override
Future<void> setPlayerOptionInInt({required String key, required int value}) {
return _mediaPlayer!.setPlayerOptionInInt(key: key, value: value);
Expand Down
26 changes: 13 additions & 13 deletions tool/terra/terra_config_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit 39734a8

Please sign in to comment.