小编Dim*_*kas的帖子

Android WebView 无法在 WebRTC 对等连接上显示两个视频标签

我在 android 上创建了一个 Webview,并在 Manifest 上拥有所有必需的权限,然后尝试显示一个带有 WebRTC 对等连接示例的站点。但它无法显示这两个视频。它仅显示呼叫者,而不显示接收者。

安卓屏幕预览

模块等级:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.webview"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Run Code Online (Sandbox Code Playgroud)

项目等级:

buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies …
Run Code Online (Sandbox Code Playgroud)

java webview android-webview webrtc

3
推荐指数
1
解决办法
1870
查看次数

标签 统计

android-webview ×1

java ×1

webrtc ×1

webview ×1