Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jan 28, 2021
1 parent f2be675 commit a64b71e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion example/lib/examples/advanced/multi_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class _State extends State<MultiChannel> {
}

_initEngine() async {
widget._engine = await RtcEngine.create(config.appId);
widget._engine =
await RtcEngine.createWithConfig(RtcEngineConfig(config.appId));

await widget._engine.enableVideo();
await widget._engine.startPreview();
Expand Down
3 changes: 2 additions & 1 deletion example/lib/examples/basic/join_channel_audio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class _State extends State<JoinChannelAudio> {
}

_initEngine() async {
widget._engine = await RtcEngine.create(config.appId);
widget._engine =
await RtcEngine.createWithConfig(RtcEngineConfig(config.appId));
this._addListeners();

await widget._engine.enableAudio();
Expand Down
3 changes: 2 additions & 1 deletion example/lib/examples/basic/join_channel_video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class _State extends State<JoinChannelVideo> {
}

_initEngine() async {
widget._engine = await RtcEngine.create(config.appId);
widget._engine =
await RtcEngine.createWithConfig(RtcEngineConfig(config.appId));
this._addListeners();

await widget._engine.enableVideo();
Expand Down
3 changes: 2 additions & 1 deletion example/lib/examples/basic/string_uid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class _State extends State<StringUid> {
}

_initEngine() async {
widget._engine = await RtcEngine.create(config.appId);
widget._engine =
await RtcEngine.createWithConfig(RtcEngineConfig(config.appId));
this._addListeners();

await widget._engine.setChannelProfile(ChannelProfile.LiveBroadcasting);
Expand Down

0 comments on commit a64b71e

Please sign in to comment.