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

Failed to get fallback IMM with expected displayId=185 actual IMM#displayId=0 view=com.pichillilorenzo.flutter_inappwebview.InAppWebView #377

Closed
horiyahumaid opened this issue Jun 3, 2020 · 5 comments

Comments

@horiyahumaid
Copy link

horiyahumaid commented Jun 3, 2020

I cant open my url inside the app it shows that in screen i need to upgrade my browser. the url which i want to view is use WebRTC and need access to camera and microphone. i add all permissions.

this are errors:
b/117267690: Failed to get fallback IMM with expected displayId=185 actual IMM#displayId=0 view=com.pichillilorenzo.flutter_inappwebview.InAppWebView

W/VideoCapabilities(17047): Unrecognized profile/level 0/0 for video/mpeg2
W/VideoCapabilities(17047): Unrecognized profile/level 0/2 for video/mpeg2
W/VideoCapabilities(17047): Unrecognized profile/level 0/3 for video/mpeg2
I/VideoCapabilities(17047): Unsupported profile 5 for video/mpeg2
I/chatty (17047): uid=10411(appid) Chrome_InProcGp identical 2 lines

this is my code

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.teal[200],
        elevation: 0.0,
        title: Text(MyLocalizations.of(context, "virtual_meeting"), style: TextStyle(
          fontSize: 18.0,
          fontFamily: 'cairo',),
        ),
        centerTitle: true,
      ),
      body: SingleChildScrollView(
        child: Column(
          children: <Widget>[

  Container(
    height: 700,
    child:InAppWebView(
        initialUrl: MeetingURL,
        initialHeaders: {},
//        initialOptions:InAppWebViewWidgetOptions(
//          inAppWebViewOptions: InAppWebViewOptions(
//            mediaPlaybackRequiresUserGesture: false,
//            debuggingEnabled: true,
//          ),
//        ),
        onWebViewCreated: (InAppWebViewController controller) {
          webView = controller;
        },
        onLoadStart: (InAppWebViewController controller, String url) {
        },
        onLoadStop: (InAppWebViewController controller, String url) {

        },
        androidOnPermissionRequest:(InAppWebViewController controller, String origin, List<String> resources) async {
          print(origin);
          print(resources);
          return PermissionRequestResponse(resources: resources, action: PermissionRequestResponseAction.GRANT);
        }
    ),

//    child:WebView(
//          initialUrl:MeetingURL,
//          javascriptMode: JavascriptMode.unrestricted,
//        ),
  ),
          ],
        ),
      ),
      persistentFooterButtons: <Widget>[new
      Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        crossAxisAlignment: CrossAxisAlignment.start,
//    mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          RaisedButton(
            child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  Icon(Icons.add),
                  Text("  "),
                  Text(MyLocalizations.of(context,"added_more_attendess")),
                ]),
            color: Colors.teal,
            onPressed: () {
//              _addmoreAttendess();
            },
          ),
          Text("  "),
          RaisedButton(
            child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  Icon(Icons.cancel),
                  Text("  "),
                  Text(MyLocalizations.of(context,"meeting_cancel")),
                ]),
            color: Colors.teal,
            onPressed: () {
              Navigator.pop(context);
            },
          ),

        ],
      ),
      ],
@pichillilorenzo
Copy link
Owner

Take a look at my last comment here: #323 (comment)

If you use https://appr.tc/ to create a WebRTC test room and set the room ID to my example, does it work?

@horiyahumaid
Copy link
Author

horiyahumaid commented Jun 4, 2020

Take a look at my last comment here: #323 (comment)

If you use https://appr.tc/ to create a WebRTC test room and set the room ID to my example, does it work?

yes i try this url it is working, but my url still not working.

and do you know why comes error in (InAppWebViewWidgetOptions)
i am using last version of plugin.

// initialOptions:InAppWebViewWidgetOptions(
// inAppWebViewOptions: InAppWebViewOptions(
// mediaPlaybackRequiresUserGesture: false,
// debuggingEnabled: true,
// ),
// ),

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Jun 4, 2020

InAppWebViewWidgetOptions has been renamed to InAppWebViewGroupOptions. Just check docs for that (or your IDE).

@horiyahumaid
Copy link
Author

InAppWebViewWidgetOptions has been renamed to InAppWebViewGroupOptions. Just check docs for that (or your IDE).

thank you

This was referenced Jul 6, 2020
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants