Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] customRenders: { videoMatcher(): videoRender(),) #1223

Open
csc-EricWu opened this issue Feb 1, 2023 · 0 comments
Open

[BUG] customRenders: { videoMatcher(): videoRender(),) #1223

csc-EricWu opened this issue Feb 1, 2023 · 0 comments
Labels
bug Something isn't working <video> Issues with the <video> tag

Comments

@csc-EricWu
Copy link

csc-EricWu commented Feb 1, 2023

Describe the bug:

          document: _document,
          shrinkWrap: true,
          onImageError: (exception, stackTrace) {
            debugPrint("load html image error :${exception.toString()}");
          },
          onCssParseError: (css, errors) {
            debugPrint("html css parse :${errors.toString()}");
          },
          style: {
            "body": textStyle,
            "p": textStyle,
            "span": textStyle
          },
          customRenders: {
            videoMatcher(): videoRender(),
            iframeMatcher(): iframeRender(),
            networkSourceMatcher(): imageCustomRender(clickHtmlPhoto),
          });```
videoRender() creates a videoPlayerController and is immediately disposed.

Unhandled Exception: A ChewieController was used after being disposed.
Once you have called dispose() on a ChewieController, it can no longer be used.
#0 ChangeNotifier.debugAssertNotDisposed. (package:flutter/src/foundation/change_notifier.dart:157:9)
#1 ChangeNotifier.debugAssertNotDisposed (package:flutter/src/foundation/change_notifier.dart:164:6)
#2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:360:27)
#3 ChewieController.toggleFullScreen (package:chewie/src/chewie_player.dart:591:5)
#4 _CupertinoControlsState._onExpandCollapse. (package:chewie/src/cupertino/cupertino_controls.dart:662:24)
#5 State.setState (package:flutter/src/widgets/framework.dart:1133:30)
#6 _CupertinoControlsState._onExpandCollapse (package:chewie/src/cupertino/cupertino_controls.dart:659:5)
#7 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart<…>

@csc-EricWu csc-EricWu added the bug Something isn't working label Feb 1, 2023
@Sub6Resources Sub6Resources added <video> Issues with the <video> tag in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize labels May 9, 2023
@Sub6Resources Sub6Resources added this to the Priority Goals milestone May 18, 2023
@Sub6Resources Sub6Resources removed the in-triage Issue's that I've seen but haven't had a chance to thoroughly review and/or categorize label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working <video> Issues with the <video> tag
Projects
Status: Todo
Development

No branches or pull requests

2 participants