Skip to content

Commit

Permalink
Merge branch 'main' into dev/unit-test
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Oct 23, 2023
2 parents 1ca3e44 + 604c535 commit c23c0e7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# IRIS_WEB

## [0.1.2-dev.2](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.1.2-dev.1...v0.1.2-dev.2) (2023-10-19)


### Bug Fixes

* Allow createAudioTrack failed when initialize ([#16](https://github.com/AgoraIO-Extensions/iris_web/issues/16)) ([1588b7f](https://github.com/AgoraIO-Extensions/iris_web/commit/1588b7f0e4591f89d90e128796b45b6080a240c5))

## [0.1.2-dev.1](https://github.com/AgoraIO-Extensions/iris_web/compare/v0.1.1-dev.1...v0.1.2-dev.1) (2023-10-18)


Expand Down
2 changes: 1 addition & 1 deletion packages/fake/rtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iris-web-rtc-fake",
"version": "0.1.2-dev.1",
"version": "0.1.2-dev.2",
"description": "wait",
"main": "./index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iris-web-rtc",
"version": "0.1.2-dev.1",
"version": "0.1.2-dev.2",
"description": "wait",
"main": "./src/index.ts",
"scripts": {
Expand Down
10 changes: 7 additions & 3 deletions packages/rtc/src/impl/IAgoraRtcEngineImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ export class IRtcEngineImpl implements IRtcEngineExtensions {
);
}
//音频模块默认是开启的,所以默认创建音频轨道
await this._engine.implHelper.createAudioTrack(
IrisAudioSourceType.kAudioSourceTypeMicrophonePrimary
);
try {
await this._engine.implHelper.createAudioTrack(
IrisAudioSourceType.kAudioSourceTypeMicrophonePrimary
);
} catch (e) {
AgoraConsole.warn(`createAudioTrack error: ${e}`);
}

let result = this._engine.globalState.AgoraRTC.checkSystemRequirements();
return this._engine.returnResult(result);
Expand Down

0 comments on commit c23c0e7

Please sign in to comment.