Skip to content

无法调用ijk解码器 #26

@xipeng5

Description

@xipeng5

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
repositories {
flatDir {
dirs 'libs'
}
google()
jcenter()
mavenCentral()
maven {
url "https://jitpack.io"
}
//GroMore SDK依赖
maven {
url "https://artifact.bytedance.com/repository/pangle"
}
//友盟统计服务
maven { url 'https://repo1.maven.org/maven2/' }
}

dependencies {
    classpath "com.android.tools.build:gradle:4.0.1"
    classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {

repositories {
    flatDir {
        dirs 'libs'
    }
    google()
    jcenter()
    mavenCentral()
    maven { url "https://jitpack.io" }

    //GroMore SDK依赖
    maven {
        url "https://artifact.bytedance.com/repository/pangle"
    }
    //友盟统计服务
    maven { url 'https://repo1.maven.org/maven2/' }
}

}

task clean(type: Delete) {
delete rootProject.buildDir
}

//播放器(无UI交互)
implementation 'com.github.hty527.iPlayer:iplayer:2.1.26.1'
//SDK默认UI交互组件
implementation 'com.github.hty527.iPlayer:widget:2.1.26.1'
//音视频预缓存+边播边存
implementation 'com.github.hty527.iPlayer:cache:2.1.26.1'
//ijk音视频解码器
implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
//exo音视频解码器
implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'

已经导包。但是无法调用这个方法
IjkPlayerFactory.create().createPlayer(VideoPlayerActivity.this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions