Skip to content

Commit

Permalink
0.6.0 (#29)
Browse files Browse the repository at this point in the history
changes:

- upgrade websdk to 4.20.0
- upgrade nativesdk to 4.3.0

support new API list:

- [x] 1. RtcEngine_enableLocalVideo_5039d15
- [x] 2. RtcEngine_muteAllRemoteVideoStreams_5039d15
- [x] 3. RtcEngine_createDataStream_5862815
- [x] 4. RtcEngine_sendStreamMessage_8715a45
- [x] 5. RtcEngine_muteLocalVideoStream_5039d15
- [x] 6. RtcEngine_muteRemoteVideoStream_dbdc15a
- [x] 7. RtcEngineEx_muteAllRemoteVideoStreamsEx_3cf17a4
- [x] 8. RtcEngineEx_sendStreamMessageEx_0c34857
- [x] 9. RtcEngineEx_createDataStreamEx_9f641b6
- [x] 10. RtcEngineEx_muteLocalVideoStreamEx_3cf17a4
- [x] 11. RtcEngineEx_muteRemoteVideoStreamEx_6d93082
- [x] 12. RtcEngineEventHandler_onStreamMessage_99898cb
- [x] 13. RtcEngineEventHandler_onRemoteVideoStateChanged_a14e9d1
- [x] 14. RtcEngine_joinChannelWithUserAccount_0e4f59e
- [x] 15. RtcEngine_joinChannelWithUserAccount_4685af9
- [x] 16. RtcEngine_getUserInfoByUserAccount_c6a8f08
- [x] 17. RtcEngine_getUserInfoByUid_6b7aee8

---------

Co-authored-by: sda-rob <149643938+sda-rob@users.noreply.github.com>
Co-authored-by: guoxianzhe <guoxianzhe@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 1, 2024
1 parent 4d773ff commit ff2c801
Show file tree
Hide file tree
Showing 61 changed files with 5,650 additions and 1,954 deletions.
53 changes: 47 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
description: 'upload to cdn'
default: true
type: boolean
release_type:
description: 'The release type of CDN'
default: 'staging'
type: string

jobs:
release-it:
Expand Down Expand Up @@ -67,10 +63,55 @@ jobs:
version=$(node -p "require('./packages/rtm/package.json').version")
echo "version=${version}" >> $GITHUB_ENV
- name: Check if release exists 🚀
id: check-if-release-exists
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Current tag = v${{ env.version }}"
RELEASE_TAG="v${{ env.version }}"
if [[ "${{ inputs.release-tag }}" != "" ]]; then
echo "Setting release tag to check to ${{ inputs.release-tag }}"
RELEASE_TAG="${{ inputs.release-tag }}"
fi
set +e
if [[ "$(gh release view $RELEASE_TAG 2>&1)" == "release not found" ]]; then
echo "Release not found."
echo "release-exists=0" >> $GITHUB_OUTPUT
else
echo "Release found."
echo "release-exists=1" >> $GITHUB_OUTPUT
fi
shell: bash

- name: Update CHANGELOG.md and Create Release
if: ${{ steps.check-if-release-exists.outputs.release-exists == 0 }}
run: |
pnpm release ${{ env.version }} --ci --npm.allowSameVersion --github.assets=./packages/rtc/dist/${{ env.RTC_PACKAGE_PATH }} --github.assets=./packages/fake/rtc/dist/${{ env.RTC_FAKE_PACKAGE_PATH }}
- name: Get Release ID
id: get_release
if: ${{ steps.check-if-release-exists.outputs.release-exists == 1 }}
run: |
release_id=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/tags/v${{ env.version }} | jq '.id')
echo "RELEASE_ID=$release_id" >> $GITHUB_ENV
- name: Delete All Assets
if: ${{ steps.check-if-release-exists.outputs.release-exists == 1 }}
run: |
assets=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}/assets)
for asset_id in $(echo "$assets" | jq -r '.[].id'); do
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/assets/$asset_id
done
- name: Upload New Asset
if: ${{ steps.check-if-release-exists.outputs.release-exists == 1 }}
run: |
for asset_path in ./packages/rtc/dist/${{ env.RTC_PACKAGE_PATH }} ./packages/fake/rtc/dist/${{ env.RTC_FAKE_PACKAGE_PATH }}; do
asset_name=$(basename $asset_path)
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -H "Content-Type: application/zip" --data-binary @$asset_path "https://uploads.github.com/repos/${{ github.repository }}/releases/${{ env.RELEASE_ID }}/assets?name=$asset_name"
done
- name: Prepare CDN Publish iris-web-rtc
if: ${{ inputs.cdn }}
run: |
Expand All @@ -86,7 +127,7 @@ jobs:
with:
upload_cdn_internal_jenkins_hook: ${{ env.UPLOAD_CDN_INTERNAL_JENKINS_HOOK }}
url: ${{ env.GITHUB_RELEASE_RTC_PACKAGE_DOWNLOAD_URL }}
release_type: ${{ inputs.release_type }}
release_type: 'sdk'

- name: Prepare CDN Publish iris-web-rtc
if: ${{ inputs.cdn }}
Expand All @@ -103,4 +144,4 @@ jobs:
with:
upload_cdn_internal_jenkins_hook: ${{ env.UPLOAD_CDN_INTERNAL_JENKINS_HOOK }}
url: ${{ env.GITHUB_RELEASE_RTC_FAKE_PACKAGE_DOWNLOAD_URL }}
release_type: ${{ inputs.release_type }}
release_type: 'sdk'
107 changes: 107 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,112 @@
# IRIS_WEB

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.1](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.6.0...v0.6.1) (2024-02-29)

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.6.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.5.0...v0.6.0) (2024-02-29)


### Features

* some new apis ([3bb491f](https://github.com/AgoraIO-Extensions/iris_web/commit/3bb491fab567ea2ebd5a3dff34705e8ca72a8c1e))

## [0.5.0](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.3.0...v0.5.0) (2024-01-26)


Expand Down
10 changes: 10 additions & 0 deletions packages/@iris/rtc/generate/AgoraBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,16 @@ export class Packet {
size?: number;
}

export interface IPacketObserver {
onSendAudioPacket_4ad95e3(packet: Packet): boolean;

onSendVideoPacket_4ad95e3(packet: Packet): boolean;

onReceiveAudioPacket_4ad95e3(packet: Packet): boolean;

onReceiveVideoPacket_4ad95e3(packet: Packet): boolean;
}

export enum AUDIO_SAMPLE_RATE_TYPE {
AUDIO_SAMPLE_RATE_32000 = 32000,
AUDIO_SAMPLE_RATE_44100 = 44100,
Expand Down
42 changes: 42 additions & 0 deletions packages/@iris/rtc/generate/AgoraMediaBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,22 @@ export interface IAudioFrameObserverBase {
onMixedAudioFrame_4c8de15(channelId: string, audioFrame: AudioFrame): void;

onEarMonitoringAudioFrame_5405a47(audioFrame: AudioFrame): void;

onPlaybackAudioFrameBeforeMixing_9215cc7(
channelId: string,
userId: string,
audioFrame: AudioFrame
): void;

getObservedAudioFramePosition(): number;

getPlaybackAudioParams(): AudioParams;

getRecordAudioParams(): AudioParams;

getMixedAudioParams(): AudioParams;

getEarMonitoringAudioParams(): AudioParams;
}

export interface IAudioFrameObserver extends IAudioFrameObserverBase {
Expand All @@ -347,6 +363,22 @@ export interface IAudioFrameObserver extends IAudioFrameObserverBase {
onMixedAudioFrame_4c8de15(channelId: string, audioFrame: AudioFrame): void;

onEarMonitoringAudioFrame_5405a47(audioFrame: AudioFrame): void;

onPlaybackAudioFrameBeforeMixing_9215cc7(
channelId: string,
userId: string,
audioFrame: AudioFrame
): void;

getObservedAudioFramePosition(): number;

getPlaybackAudioParams(): AudioParams;

getRecordAudioParams(): AudioParams;

getMixedAudioParams(): AudioParams;

getEarMonitoringAudioParams(): AudioParams;
}

export class AudioSpectrumData {
Expand Down Expand Up @@ -407,6 +439,16 @@ export interface IVideoFrameObserver {
): void;

onTranscodedVideoFrame_27754d8(videoFrame: VideoFrame): void;

getVideoFrameProcessMode(): VIDEO_FRAME_PROCESS_MODE;

getVideoFormatPreference(): VIDEO_PIXEL_FORMAT;

getRotationApplied(): boolean;

getMirrorApplied(): boolean;

getObservedFramePosition(): number;
}

export enum EXTERNAL_VIDEO_SOURCE_TYPE {
Expand Down
8 changes: 8 additions & 0 deletions packages/@iris/rtc/generate/IAgoraMediaEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,13 @@ export interface IMediaEngine {
videoTrackId: number
): CallApiReturnType;

addVideoFrameRenderer_2cc0ef1(
renderer: IVideoFrameObserver
): CallApiReturnType;

removeVideoFrameRenderer_2cc0ef1(
renderer: IVideoFrameObserver
): CallApiReturnType;

release(): CallApiReturnType;
}
4 changes: 3 additions & 1 deletion packages/@iris/rtc/generate/IAgoraMusicContentCenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ export class MusicContentCenterConfiguration {
mccDomain?: string;
}

export interface IMusicPlayer {}
export interface IMusicPlayer {
open_303b92e(songCode: number, startPos: number): CallApiReturnType;
}

export interface IMusicContentCenter {
initialize_df70304(
Expand Down
35 changes: 30 additions & 5 deletions packages/@iris/rtc/generate/IAgoraRtcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ import {
EncryptionConfig,
HEADPHONE_EQUALIZER_PRESET,
IAudioEncodedFrameObserver,
INTERFACE_ID_TYPE,
IPacketObserver,
LICENSE_ERROR_TYPE,
LOCAL_AUDIO_STREAM_REASON,
LOCAL_AUDIO_STREAM_STATE,
Expand Down Expand Up @@ -1039,6 +1041,11 @@ export interface IRtcEngineEventHandler {

onIntraRequestReceived_c81e1a4(connection: RtcConnection): void;

onFirstLocalVideoFramePublished_263e4cd(
connection: RtcConnection,
elapsed: number
): void;

onFirstRemoteVideoDecoded_a68170a(
connection: RtcConnection,
remoteUid: number,
Expand All @@ -1056,6 +1063,12 @@ export interface IRtcEngineEventHandler {
rotation: number
): void;

onLocalVideoStateChanged_b202b1b(
connection: RtcConnection,
state: LOCAL_VIDEO_STREAM_STATE,
reason: LOCAL_VIDEO_STREAM_REASON
): void;

onRemoteVideoStateChanged_a14e9d1(
connection: RtcConnection,
remoteUid: number,
Expand Down Expand Up @@ -1124,6 +1137,11 @@ export interface IRtcEngineEventHandler {
stats: RemoteAudioStats
): void;

onLocalVideoStats_3ac0eb4(
connection: RtcConnection,
stats: LocalVideoStats
): void;

onRemoteVideoStats_2f43a70(
connection: RtcConnection,
stats: RemoteVideoStats
Expand Down Expand Up @@ -1363,6 +1381,13 @@ export class Metadata {
}

export interface IMetadataObserver {
getMaxMetadataSize(): number;

onReadyToSendMetadata_cbf4b59(
metadata: Metadata,
source_type: VIDEO_SOURCE_TYPE
): boolean;

onMetadataReceived_cb7661d(metadata: Metadata): void;
}

Expand Down Expand Up @@ -1434,6 +1459,8 @@ export class ExtensionInfo {
export interface IRtcEngine {
initialize_0320339(context: RtcEngineContext): CallApiReturnType;

queryInterface_257d192(iid: INTERFACE_ID_TYPE, inter: any): CallApiReturnType;

getVersion_915cb25(): CallApiReturnType;

getErrorDescription_46f8ab7(code: number): CallApiReturnType;
Expand Down Expand Up @@ -2237,6 +2264,8 @@ export interface IRtcEngine {
userPriority: PRIORITY_TYPE
): CallApiReturnType;

registerPacketObserver_f8b44dd(observer: IPacketObserver): CallApiReturnType;

setEncryptionMode_3a2037f(encryptionMode: string): CallApiReturnType;

setEncryptionSecret_3a2037f(secret: string): CallApiReturnType;
Expand All @@ -2247,15 +2276,11 @@ export interface IRtcEngine {
): CallApiReturnType;

createDataStream_b897a63(
streamId: number,
reliable: boolean,
ordered: boolean
): CallApiReturnType;

createDataStream_5862815(
streamId: number,
config: DataStreamConfig
): CallApiReturnType;
createDataStream_5862815(config: DataStreamConfig): CallApiReturnType;

sendStreamMessage_8715a45(
streamId: number,
Expand Down
Loading

0 comments on commit ff2c801

Please sign in to comment.