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 (#856)
  • Loading branch information
littleGnAl authored Dec 27, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d946eb8 commit f70a581
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
@@ -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');
@@ -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());
Loading

0 comments on commit f70a581

Please sign in to comment.