Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

云端转码最佳实践 #2900

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dfa3383
[CT] modify best practice
kelzr Apr 14, 2023
754348d
[CT] modify best practice
kelzr Apr 17, 2023
8b18d82
[CT] modify api name
kelzr Apr 19, 2023
9d598db
[CT] update after review
kelzr Apr 20, 2023
a2afae7
[CT] update after review
kelzr Apr 21, 2023
f420088
[CT] update after review
kelzr Apr 21, 2023
884a6a5
[CT] update after review
kelzr Apr 21, 2023
3e174a1
[CT] sync
kelzr Apr 21, 2023
d9dce92
try to fix
Apr 26, 2023
765aeb4
Merge branch 'master' of github.com:AgoraIO/agora_doc_source
Apr 26, 2023
f44860a
Create extract_proto_and_sync_to_dita_cs.py
Apr 26, 2023
6c85300
[extract_proto_and_sync_to_dita_cs] fix codeblock not be generated
littleGnAl Apr 26, 2023
26449b1
++
littleGnAl Apr 26, 2023
f5e589f
Merge pull request #2965 from AgoraIO/littlegnal/fix-cs-codeblock-not…
Cilla-luodan Apr 26, 2023
0a26a0a
fix enableAlphaMask
Nero-Hu Apr 26, 2023
2e12ac4
Sync cn prototype to en prototype
Nero-Hu Apr 26, 2023
b8f9932
Merge pull request #2990 from AgoraIO/auto/sync-cn-proto-to-en-patch-…
github-actions[bot] Apr 26, 2023
f369621
[CT] modify best practice
kelzr Apr 14, 2023
f0e7175
[CT] modify best practice
kelzr Apr 17, 2023
c294acf
[CT] modify api name
kelzr Apr 19, 2023
1c7eb60
[CT] update after review
kelzr Apr 20, 2023
9092c47
[CT] update after review
kelzr Apr 21, 2023
3cbba08
[CT] update after review
kelzr Apr 21, 2023
4698a59
[CT] update after review
kelzr Apr 21, 2023
fdad390
[CT] sync
kelzr Apr 21, 2023
9105022
Merge branch 'release/cloud-transcoder' of github.com:AgoraIO/agora_d…
kelzr Apr 26, 2023
b1f1766
[cloud-transcoder] modify
kelzr Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/python-app-fetch-proto-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

# pull_request:
# branches:
# - 'release/rtc-ng/3.7.203-unity'
# - 'release/rtc-ng/3.7.203-unity'
# - 'release/rtc-ng/4.0.0-framework'
push:
branches:
Expand All @@ -28,20 +28,22 @@ jobs:
cd xml2json
python -m pip install --upgrade pip
pip install coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
- name: fetch proto
run: |
cd xml2json
# echo "----------------------------Starting for Unity------------------------------------------------"
# python extract_proto_and_sync_to_dita_unity.py --code_location ./code_to_check/unity_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for Flutter----------------------------------------------"
# python extract_proto_and_sync_to_dita_flutter.py --code_location ./code_to_check/flutter-ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-flutter.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for RN---------------------------------------------------"
# python extract_proto_and_sync_to_dita_react_native.py --code_location ./code_to_check/rn_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-rn.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for Electron---------------------------------------------"
# python extract_proto_and_sync_to_dita_electron.py --code_location ./code_to_check/electron_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-electron.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for Unity------------------------------------------------"
# python extract_proto_and_sync_to_dita_unity.py --code_location ./code_to_check/unity_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for Flutter----------------------------------------------"
# python extract_proto_and_sync_to_dita_flutter.py --code_location ./code_to_check/flutter-ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-flutter.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for RN---------------------------------------------------"
# python extract_proto_and_sync_to_dita_react_native.py --code_location ./code_to_check/rn_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-rn.ditamap --decomment_code_location ./code_to_check/decommented
# echo "----------------------------Starting for Electron---------------------------------------------"
# python extract_proto_and_sync_to_dita_electron.py --code_location ./code_to_check/electron_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-electron.ditamap --decomment_code_location ./code_to_check/decommented
echo "----------------------------Starting for Csharp------------------------------------------------"
python extract_proto_and_sync_to_dita_cs.py --code_location ./code_to_check/csharp_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-cs.ditamap --decomment_code_location ./code_to_check/decommented
python extract_proto_and_sync_to_dita_cs.py --code_location ./code_to_check/csharp_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-app-fetch-proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
cd xml2json
# python extract_proto_and_sync_to_dita_unity.py --code_location ./code_to_check/unity_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented
# python extract_proto_and_sync_to_dita_flutter.py --code_location ./code_to_check/flutter-ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-flutter.ditamap --decomment_code_location ./code_to_check/decommented
python extract_proto_and_sync_to_dita_react_native.py --code_location ./code_to_check/rn_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-rn.ditamap --decomment_code_location ./code_to_check/decommented
# python extract_proto_and_sync_to_dita_react_native.py --code_location ./code_to_check/rn_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-rn.ditamap --decomment_code_location ./code_to_check/decommented
python extract_proto_and_sync_to_dita_cs.py --code_location ./code_to_check/csharp_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
Expand Down
14 changes: 2 additions & 12 deletions dita/RTC-NG/API/class_videocanvas.dita
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,7 @@
this.setupMode = setupMode;
}
}</codeblock>
<codeblock props="ios" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
@property(strong, nonatomic) VIEW_CLASS *_Nullable view;
@property(assign, nonatomic) NSUInteger uid;
@property(assign, nonatomic) AgoraVideoRenderMode renderMode;
@property(assign, nonatomic) AgoraVideoMirrorMode mirrorMode;
@property(assign, nonatomic) AgoraVideoViewSetupMode setupMode;
@property(nonatomic, assign) AgoraVideoSourceType sourceType;
@property(nonatomic, assign) int mediaPlayerId;
@property(assign, nonatomic) CGRect cropArea;
@end</codeblock>
<codeblock props="mac" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
<codeblock props="ios mac" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
@property(strong, nonatomic) VIEW_CLASS *_Nullable view;
@property(assign, nonatomic) NSUInteger uid;
@property(assign, nonatomic) AgoraVideoRenderMode renderMode;
Expand Down Expand Up @@ -299,7 +289,7 @@
<pt>cropArea</pt>
<pd>(可选)视频帧的展示区域,详见 <xref keyref="rect-link"/>。其中,<parmname>width</parmname> 和 <parmname>height</parmname> 表示该区域的视频像素宽度和高度。默认值为空值 (宽或高为 0),表示展示实际分辨率的视频帧。</pd>
</plentry>
<plentry props="cpp mac unity electron flutter">
<plentry props="cpp ios mac unity electron flutter">
<pt>enableAlphaMask</pt>
<pd>
<p>(可选)接收端是否开启 alpha 遮罩渲染:
Expand Down
12 changes: 1 addition & 11 deletions en-US/dita/RTC-NG/API/class_videocanvas.dita
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,7 @@
this.setupMode = setupMode;
}
}</codeblock>
<codeblock props="ios" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
@property(strong, nonatomic) VIEW_CLASS *_Nullable view;
@property(assign, nonatomic) NSUInteger uid;
@property(assign, nonatomic) AgoraVideoRenderMode renderMode;
@property(assign, nonatomic) AgoraVideoMirrorMode mirrorMode;
@property(assign, nonatomic) AgoraVideoViewSetupMode setupMode;
@property(nonatomic, assign) AgoraVideoSourceType sourceType;
@property(nonatomic, assign) int mediaPlayerId;
@property(assign, nonatomic) CGRect cropArea;
@end</codeblock>
<codeblock props="mac" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
<codeblock props="ios mac" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraRtcVideoCanvas : NSObject
@property(strong, nonatomic) VIEW_CLASS *_Nullable view;
@property(assign, nonatomic) NSUInteger uid;
@property(assign, nonatomic) AgoraVideoRenderMode renderMode;
Expand Down
Loading