Skip to content

Commit

Permalink
chore: upgrade for new iris api id
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Jan 17, 2024
1 parent d1239a0 commit 41f93bc
Show file tree
Hide file tree
Showing 20 changed files with 554 additions and 550 deletions.
2 changes: 1 addition & 1 deletion scripts/terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@agoraio-extensions/cxx-parser": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=cxx-parser",
"@agoraio-extensions/terra": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=terra",
"@agoraio-extensions/terra-core": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=terra-core",
"@agoraio-extensions/terra_shared_configs": "[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=ac9ad3fb2497988e3c68178648790ae80959851e",
"@agoraio-extensions/terra_shared_configs": "[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=0b3318299a385dfa914e14e594e1301ddda81777",
"@types/js-yaml": "^4.0.8",
"@types/node": "^18.17.9",
"js-yaml": "^4.1.0",
Expand Down
8 changes: 4 additions & 4 deletions scripts/terra/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ __metadata:
languageName: node
linkType: hard

"@agoraio-extensions/terra_shared_configs@[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=ac9ad3fb2497988e3c68178648790ae80959851e":
"@agoraio-extensions/terra_shared_configs@[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=0b3318299a385dfa914e14e594e1301ddda81777":
version: 1.0.2
resolution: "@agoraio-extensions/terra_shared_configs@[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=ac9ad3fb2497988e3c68178648790ae80959851e"
resolution: "@agoraio-extensions/terra_shared_configs@[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=0b3318299a385dfa914e14e594e1301ddda81777"
dependencies:
"@agoraio-extensions/cxx-parser": "[email protected]:AgoraIO-Extensions/terra.git#head=main&workspace=cxx-parser"
"@agoraio-extensions/terra-core": "[email protected]:AgoraIO-Extensions/terra.git#head=main&workspace=terra-core"
mustache: "npm:^4.2.0"
checksum: 0756ccbb58f543071a67d893640c1973f406ad37722bc2222c326dc66ccee7280e4829e854502ff672f1653e57552f42b165a33e9367baf50a28184dd0d28091
checksum: 78884794e9f4063441a08997cc7a0f343ec39b8e5bebb803c58a8aced26f0cdee488368cb4e0439f95436ca529983f0d3c495a2bd2f5ea5beaa4cad3856551cc
languageName: node
linkType: hard

Expand Down Expand Up @@ -482,7 +482,7 @@ __metadata:
"@agoraio-extensions/cxx-parser": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=cxx-parser"
"@agoraio-extensions/terra": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=terra"
"@agoraio-extensions/terra-core": "[email protected]:AgoraIO-Extensions/terra.git#commit=d6ec3a950d800ebf92dcabca19c9c5b5831431a0&workspace=terra-core"
"@agoraio-extensions/terra_shared_configs": "[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=ac9ad3fb2497988e3c68178648790ae80959851e"
"@agoraio-extensions/terra_shared_configs": "[email protected]:AgoraIO-Extensions/terra_shared_configs.git#commit=0b3318299a385dfa914e14e594e1301ddda81777"
"@types/js-yaml": "npm:^4.0.8"
"@types/node": "npm:^20.6.0"
js-yaml: "npm:^4.1.0"
Expand Down
26 changes: 24 additions & 2 deletions ts/Private/IAgoraMediaPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,34 @@ export abstract class IMediaPlayer {
abstract setSoundPositionParams(pan: number, gain: number): number;

/**
* @ignore
* Sets the private options for the media player.
*
* The media player supports setting private options by key and value. Under normal circumstances, you do not need to know the private option settings, and just use the default option settings.
* Ensure that you call this method before open.
* If you need to push streams with SEI into the CDN, call setPlayerOptionInInt ("sei_data_with_uuid", 1); otherwise, the loss of SEI might occurs.
*
* @param key The key of the option.
* @param value The value of the key.
*
* @returns
* 0: Success.
* < 0: Failure.
*/
abstract setPlayerOptionInInt(key: string, value: number): number;

/**
* @ignore
* Sets the private options for the media player.
*
* The media player supports setting private options by key and value. Under normal circumstances, you do not need to know the private option settings, and just use the default option settings.
* Ensure that you call this method before open.
* If you need to push streams with SEI into the CDN, call setPlayerOptionInInt ("sei_data_with_uuid", 1); otherwise, the loss of SEI might occurs.
*
* @param key The key of the option.
* @param value The value of the key.
*
* @returns
* 0: Success.
* < 0: Failure.
*/
abstract setPlayerOptionInString(key: string, value: string): number;
}
Expand Down
12 changes: 11 additions & 1 deletion ts/Private/IAgoraRtcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6619,7 +6619,17 @@ export abstract class IRtcEngine {
abstract release(sync?: boolean): void;

/**
* @ignore
* Enables the local video preview.
*
* You can call this method to enable local video preview. Call this method after the following:
* Call setView to initialize the local preview.
* Call enableVideo to enable the video module.
* The local preview enables the mirror mode by default.
* After the local video preview is enabled, if you call to exit the channel, the local preview remains until you call to disable it.
*
* @returns
* 0: Success.
* < 0: Failure.
*/
abstract startPreviewWithoutSourceType(): number;

Expand Down
2 changes: 1 addition & 1 deletion ts/Private/impl/AgoraMediaBaseImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class IVideoFrameMetaInfoImpl implements IVideoFrameMetaInfo {
}

protected getApiTypeFromGetMetaInfoStr(key: MetaInfoKey): string {
return 'VideoFrameMetaInfo_getMetaInfoStr';
return 'VideoFrameMetaInfo_getMetaInfoStr_c81192f';
}
}

Expand Down
10 changes: 5 additions & 5 deletions ts/Private/impl/IAgoraH265TranscoderImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class IH265TranscoderImpl implements IH265Transcoder {
channel: string,
uid: number
): string {
return 'H265Transcoder_enableTranscode';
return 'H265Transcoder_enableTranscode_a0779eb';
}

queryChannel(token: string, channel: string, uid: number): number {
Expand All @@ -83,7 +83,7 @@ export class IH265TranscoderImpl implements IH265Transcoder {
channel: string,
uid: number
): string {
return 'H265Transcoder_queryChannel';
return 'H265Transcoder_queryChannel_a0779eb';
}

triggerTranscode(token: string, channel: string, uid: number): number {
Expand All @@ -109,7 +109,7 @@ export class IH265TranscoderImpl implements IH265Transcoder {
channel: string,
uid: number
): string {
return 'H265Transcoder_triggerTranscode';
return 'H265Transcoder_triggerTranscode_a0779eb';
}

registerTranscoderObserver(observer: IH265TranscoderObserver): number {
Expand All @@ -127,7 +127,7 @@ export class IH265TranscoderImpl implements IH265Transcoder {
protected getApiTypeFromRegisterTranscoderObserver(
observer: IH265TranscoderObserver
): string {
return 'H265Transcoder_registerTranscoderObserver';
return 'H265Transcoder_registerTranscoderObserver_e1ee996';
}

unregisterTranscoderObserver(observer: IH265TranscoderObserver): number {
Expand All @@ -145,7 +145,7 @@ export class IH265TranscoderImpl implements IH265Transcoder {
protected getApiTypeFromUnregisterTranscoderObserver(
observer: IH265TranscoderObserver
): string {
return 'H265Transcoder_unregisterTranscoderObserver';
return 'H265Transcoder_unregisterTranscoderObserver_e1ee996';
}
}

Expand Down
32 changes: 16 additions & 16 deletions ts/Private/impl/IAgoraMediaEngineImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromRegisterAudioFrameObserver(
observer: IAudioFrameObserver
): string {
return 'MediaEngine_registerAudioFrameObserver';
return 'MediaEngine_registerAudioFrameObserver_d873a64';
}

registerVideoFrameObserver(observer: IVideoFrameObserver): number {
Expand All @@ -49,7 +49,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromRegisterVideoFrameObserver(
observer: IVideoFrameObserver
): string {
return 'MediaEngine_registerVideoFrameObserver';
return 'MediaEngine_registerVideoFrameObserver_2cc0ef1';
}

registerVideoEncodedFrameObserver(
Expand All @@ -70,7 +70,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromRegisterVideoEncodedFrameObserver(
observer: IVideoEncodedFrameObserver
): string {
return 'MediaEngine_registerVideoEncodedFrameObserver';
return 'MediaEngine_registerVideoEncodedFrameObserver_d45d579';
}

pushAudioFrame(frame: AudioFrame, trackId: number = 0): number {
Expand All @@ -93,7 +93,7 @@ export class IMediaEngineImpl implements IMediaEngine {
frame: AudioFrame,
trackId: number = 0
): string {
return 'MediaEngine_pushAudioFrame';
return 'MediaEngine_pushAudioFrame_c71f4ab';
}

pullAudioFrame(frame: AudioFrame): number {
Expand All @@ -111,7 +111,7 @@ export class IMediaEngineImpl implements IMediaEngine {
}

protected getApiTypeFromPullAudioFrame(frame: AudioFrame): string {
return 'MediaEngine_pullAudioFrame';
return 'MediaEngine_pullAudioFrame_2c74a9c';
}

setExternalVideoSource(
Expand Down Expand Up @@ -150,7 +150,7 @@ export class IMediaEngineImpl implements IMediaEngine {
sourceType: ExternalVideoSourceType = ExternalVideoSourceType.VideoFrame,
encodedVideoOption: SenderOptions = new SenderOptions()
): string {
return 'MediaEngine_setExternalVideoSource';
return 'MediaEngine_setExternalVideoSource_fff99b6';
}

setExternalAudioSource(
Expand Down Expand Up @@ -194,7 +194,7 @@ export class IMediaEngineImpl implements IMediaEngine {
localPlayback: boolean = false,
publish: boolean = true
): string {
return 'MediaEngine_setExternalAudioSource';
return 'MediaEngine_setExternalAudioSource_e6538be';
}

createCustomAudioTrack(
Expand Down Expand Up @@ -223,7 +223,7 @@ export class IMediaEngineImpl implements IMediaEngine {
trackType: AudioTrackType,
config: AudioTrackConfig
): string {
return 'MediaEngine_createCustomAudioTrack';
return 'MediaEngine_createCustomAudioTrack_5a0bf1a';
}

destroyCustomAudioTrack(trackId: number): number {
Expand All @@ -241,7 +241,7 @@ export class IMediaEngineImpl implements IMediaEngine {
}

protected getApiTypeFromDestroyCustomAudioTrack(trackId: number): string {
return 'MediaEngine_destroyCustomAudioTrack';
return 'MediaEngine_destroyCustomAudioTrack_6178b5d';
}

setExternalAudioSink(
Expand Down Expand Up @@ -275,7 +275,7 @@ export class IMediaEngineImpl implements IMediaEngine {
sampleRate: number,
channels: number
): string {
return 'MediaEngine_setExternalAudioSink';
return 'MediaEngine_setExternalAudioSink_d275ce0';
}

enableCustomAudioLocalPlayback(trackId: number, enabled: boolean): number {
Expand All @@ -301,7 +301,7 @@ export class IMediaEngineImpl implements IMediaEngine {
trackId: number,
enabled: boolean
): string {
return 'MediaEngine_enableCustomAudioLocalPlayback';
return 'MediaEngine_enableCustomAudioLocalPlayback_5f38e8a';
}

pushVideoFrame(frame: ExternalVideoFrame, videoTrackId: number = 0): number {
Expand All @@ -324,7 +324,7 @@ export class IMediaEngineImpl implements IMediaEngine {
frame: ExternalVideoFrame,
videoTrackId: number = 0
): string {
return 'MediaEngine_pushVideoFrame';
return 'MediaEngine_pushVideoFrame_4e544e2';
}

pushEncodedVideoImage(
Expand Down Expand Up @@ -362,7 +362,7 @@ export class IMediaEngineImpl implements IMediaEngine {
videoEncodedFrameInfo: EncodedVideoFrameInfo,
videoTrackId: number = 0
): string {
return 'MediaEngine_pushEncodedVideoImage';
return 'MediaEngine_pushEncodedVideoImage_e71452b';
}

release(): void {
Expand Down Expand Up @@ -390,7 +390,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromUnregisterAudioFrameObserver(
observer: IAudioFrameObserver
): string {
return 'MediaEngine_unregisterAudioFrameObserver';
return '';
}

unregisterVideoFrameObserver(observer: IVideoFrameObserver): number {
Expand All @@ -408,7 +408,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromUnregisterVideoFrameObserver(
observer: IVideoFrameObserver
): string {
return 'MediaEngine_unregisterVideoFrameObserver';
return '';
}

unregisterVideoEncodedFrameObserver(
Expand All @@ -429,7 +429,7 @@ export class IMediaEngineImpl implements IMediaEngine {
protected getApiTypeFromUnregisterVideoEncodedFrameObserver(
observer: IVideoEncodedFrameObserver
): string {
return 'MediaEngine_unregisterVideoEncodedFrameObserver';
return '';
}
}

Expand Down
Loading

0 comments on commit 41f93bc

Please sign in to comment.