hty527 / iPlayer

支持IJKPlayer、ExoPlayer、MediaPlayer和其它更多解码器切换、支持静音、镜像、渲染模式、倍速设置等功能的轻便级播放器,支持自定义解码器、控制器、UI交互组件和悬浮窗播放能力等
127 stars 31 forks source link

无法调用ijk解码器 #26

Open xipeng5 opened 1 year ago

xipeng5 commented 1 year ago

// 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)

hty527 commented 1 year ago

你好,问题解决了吗?