Skip to content

Commit

Permalink
feat: [windows] Support render mode and mirror mode for AgoraVideoVie…
Browse files Browse the repository at this point in the history
…w with flutter texture rendering (AgoraIO-Extensions#856)
  • Loading branch information
littleGnAl authored Dec 27, 2022
1 parent 3b5a1b3 commit 9bcb1c7
Show file tree
Hide file tree
Showing 17 changed files with 391 additions and 57 deletions.
10 changes: 0 additions & 10 deletions lib/src/impl/agora_video_view_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ class _AgoraRtcRenderTextureState extends State<AgoraRtcRenderTexture>

@override
void maybeCreateChannel(int viewId, String viewType) {
if (!(defaultTargetPlatform == TargetPlatform.macOS ||
defaultTargetPlatform == TargetPlatform.iOS)) {
return;
}

// Only handle render mode on macos at this time
final textureId = widget.controller.getTextureId();
methodChannel = MethodChannel('agora_rtc_engine/texture_render_$textureId');
Expand Down Expand Up @@ -257,11 +252,6 @@ class _AgoraRtcRenderTextureState extends State<AgoraRtcRenderTexture>
@override
Widget build(BuildContext context) {
if (widget.controller.getTextureId() != kTextureNotInit) {
if (!(defaultTargetPlatform == TargetPlatform.macOS ||
defaultTargetPlatform == TargetPlatform.iOS)) {
return buildTexure(widget.controller.getTextureId());
}

// Only handle render mode on macos at this time
if (_height != 0 && _width != 0) {
Widget result = buildTexure(widget.controller.getTextureId());
Expand Down
Loading

0 comments on commit 9bcb1c7

Please sign in to comment.