繁体   English   中英

BigBlueButton URL 未加载到 Android WebView

[英]BigBlueButton URL is not loading in Android WebView

我的一个应用程序中有一个要求,它在 WebView 中打开 BigBlueButton 链接。 URL 是:

https://bbb.odin-health.com/bigbluebutton/api/join?fullName=Testdevice&meetingID=1600182496839&password=5FvAjuRt&checksum=b315e70fdabd4f3b56a1e33e500d0d25929056

当试图在 webview 中加载此 url 时,它显示白色或空白页面。 这是代码

WebSettings webSettings = webview.getSettings();
    webview.setWebViewClient(new MyWebViewClient());
    webSettings.setSupportZoom(true);
    webSettings.setBuiltInZoomControls(true);     
  

    webSettings.setUserAgentString("Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Safari/537.36");
    webSettings.setSupportMultipleWindows(true);
    webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
    webSettings.setPluginState(WebSettings.PluginState.ON);
    webSettings.setAppCacheMaxSize( 10 * 1024 * 1024 );
    webSettings.setAppCacheEnabled(true);
    String appCachePath = getActivity().getCacheDir().getAbsolutePath();
    webSettings.setAppCachePath(appCachePath);

    webSettings.setAllowFileAccess(true);
    webview.setLayerType(View.LAYER_TYPE_HARDWARE, null);
    webSettings.setMixedContentMode(
            WebSettings.MIXED_CONTENT_ALWAYS_ALLOW );

    webSettings.setJavaScriptEnabled(true);
    webSettings.setMediaPlaybackRequiresUserGesture(false);


    webview.setWebChromeClient(mSWWebChromeClient);

    webview.loadUrl(getArguments().getString(Constants.BIGBLUEBUTTON_URL));

我在那里错过了什么吗? 同样的 url 在设备的谷歌浏览器中工作。

这是 Logcat 错误日志:

W/AudioCapabilities: Unsupported mime audio/mpeg-L1
W/AudioCapabilities: Unsupported mime audio/mpeg-L2
W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
W/VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es
 I/OpenGLRenderer: Initialized EGL, version 1.4
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
W/OpenGLRenderer: load: so=libhwuibp.so
    dlopen failed: library "libhwuibp.so" not found
W/OpenGLRenderer: Initialize Binary Program Cache: Load Failed
W/VideoCapabilities: Unrecognized profile/level 0/0 for video/mpeg2
W/VideoCapabilities: Unrecognized profile/level 0/2 for video/mpeg2
W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
E/OpenGLRenderer: allen debug liyu Key: 1
E/OpenGLRenderer: allen debug liyu Key: 3
W/cr_MediaCodecUtil: HW encoder for video/avc is not available on this device.

谢谢

android webview 使用用户代理发送请求不适合 bbb 默认配置。 在 bbb 文档中。 检查/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml,您将在其中看到浏览器(来自用户代理字符串)和最低版本。 在那里添加您的 webviews 版本。

适用于 Android

在这里检查这个答案

对于 iOS 和 Swift

在这里检查这个答案

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM