GiraffePlayer icon indicating copy to clipboard operation
GiraffePlayer copied to clipboard

Player not support this device

Open grovertb opened this issue 8 years ago • 11 comments

Hi, I'm using version 0.3 and I get this error Player not support this device . My device is a galaxy s5 . Prior 2.0 eh you used without problems.

grovertb avatar Feb 18 '16 14:02 grovertb

can you show the stack trace please

tcking avatar Feb 19 '16 02:02 tcking

with version 4 , a friend gets this error. a nexus player. intel cpu . I still log but tomorrow I get it. I tested the Nexus 9 Nexus 6 , the shield nvidia tv without errors.

AppNetDeveloper avatar Feb 20 '16 22:02 AppNetDeveloper

E/GiraffePlayer: loadLibraries error java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/ro.vrt.videoplayerstreaming-1/lib/x86/libijkffmpeg.so: has text relocations

AppNetDeveloper avatar Feb 21 '16 16:02 AppNetDeveloper

this problem is found and vitamio and is currently a problem with no solution. sdk 22 only if we go well.

AppNetDeveloper avatar Feb 21 '16 16:02 AppNetDeveloper

v0.4 has x86 so files,make sure the the so files in the apk after build,or try this:

1.add abiFilters in build.gradle:
android{
...
defaultConfig{

    //add this
    ndk {
        abiFilters "armeabi"
    }
}
}

2.add android.useDeprecatedNdk=true in gradle.properties

tcking avatar Feb 22 '16 01:02 tcking

yes , and from nexus player cpu intel and android 6.0.1 is not work log :

02-22 18:21:12.176 6259-9852/ro.vrt.videoplayerstreaming W/cr_media: Requires BLUETOOTH permission 02-22 18:21:12.212 6259-6259/ro.vrt.videoplayerstreaming I/Ads: Starting ad request. 02-22 18:21:12.213 6259-6259/ro.vrt.videoplayerstreaming I/Ads: Use AdRequest.Builder.addTestDevice("F7317B922DCCFD09D20E6878B811383D") to get test ads on this device. 02-22 18:21:12.231 6259-6259/ro.vrt.videoplayerstreaming E/linker: /data/app/ro.vrt.videoplayerstreaming-2/lib/x86/libijkffmpeg.so: has text relocations 02-22 18:21:12.233 6259-6259/ro.vrt.videoplayerstreaming E/GiraffePlayer: loadLibraries error java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/ro.vrt.videoplayerstreaming-2/lib/x86/libijkffmpeg.so: has text relocations at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:1076) at tv.danmaku.ijk.media.player.IjkMediaPlayer$1.loadLibrary(IjkMediaPlayer.java:144) at tv.danmaku.ijk.media.player.IjkMediaPlayer.loadLibrariesOnce(IjkMediaPlayer.java:155) at tcking.github.com.giraffeplayer.GiraffePlayer.<init>(GiraffePlayer.java:263) at ro.vrt.videoplayerstreaming.MainActivity.onCreate(MainActivity.java:76) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 02-22 18:21:12.279 6259-6259/ro.vrt.videoplayerstreaming I/Ads: Starting ad request.

AppNetDeveloper avatar Feb 22 '16 17:02 AppNetDeveloper

    ndk {
        abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
    }

We all "so" necessary. and from android 6.0.1 cpu intel x86 not work , from nexus 9 cpu nvidia android 6.0.1 64bit is work from nexus 6 cpu snapdragon androis 6.0.1 is work . and from cpu intel x86 bot android 5.1 is work fine.

AppNetDeveloper avatar Feb 22 '16 17:02 AppNetDeveloper

that is the problem on android 6.0+ device,try modify the build.grade and lower the targetSdkVersion less than 23, that works for me on android 6.0 x86 emulator

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "tcking.github.com.giraffeplayer"
        minSdkVersion 10
        targetSdkVersion 21// lower than 23
        versionCode 1
        versionName "1.0"

        ndk {
            abiFilters "armeabi","armeabi-v7a","arm64-v8a","x86","x86_64"
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

tcking avatar Feb 23 '16 07:02 tcking

Using Android Studio when i create Signed APK (working fine with non signed apk) and start Android App below error occurs all the time.

ERROR

Can't load vlcjni library: java.lang.UnsatisfiedLinkError: JNI_ERR returned from JNI_OnLoad in "/data/app/parwinder.singh.livekirtan-1/lib/arm/libvlcjni.so"

It happens only if i set minifyEnabled true.

I have placed libvlcjni.so files in src->main->jniLibs->armeabi-v7a

buildTypes { release { minifyEnabled true; proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }

proguard-rules.pro file

-keep public class org.videolan.libvlc.** -keep public class com.squareup.picasso.** -keep public class com.squareup.okhttp.** -dontwarn com.squareup.picasso.** -dontwarn com.squareup.okhttp.** -keepclasseswithmembers class * { native ; }

Parwinder7808 avatar Dec 17 '16 12:12 Parwinder7808

I'm also facing the problem like text relocations error as this in My Log

E/GiraffePlayer: loadLibraries error java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.live.streamnow-Zil4ZLFNjsI0xQUuMMCJ9w==/lib/x86/libijkffmpeg.so" has text relocations

prudhvicoder avatar Sep 22 '17 06:09 prudhvicoder

you can let targetSdkVersion less then 23 or you can try GiraffePlayer2

tcking avatar Sep 22 '17 07:09 tcking