Java Code Examples for org.videolan.libvlc.util.AndroidUtil#isLolliPopOrLater()

The following examples show how to use org.videolan.libvlc.util.AndroidUtil#isLolliPopOrLater() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Util.java    From VCL-Android with Apache License 2.0 5 votes vote down vote up
public static boolean canWrite(String path){
    if (path == null)
        return false;
    if (path.startsWith("file://"))
        path = path.substring(7);
    if (!path.startsWith("/"))
        return false;
    if (path.startsWith(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY))
        return true;
    if (AndroidUtil.isLolliPopOrLater())
        return false;
    File file = new File(path);
    return (file.exists() && file.canWrite());
}
 
Example 2
Source File: Media.java    From libvlc-android-sdk with GNU Lesser General Public License v2.1 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater ? "mediacodec_ndk" : "mediacodec_jni";
}
 
Example 3
Source File: Media.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater ? "mediacodec_ndk" : "mediacodec_jni";
}
 
Example 4
Source File: Media.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater ? "mediacodec_ndk" : "mediacodec_jni";
}
 
Example 5
Source File: Media.java    From vlc-example-streamplayer with GNU General Public License v3.0 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater ? "mediacodec_ndk" : "mediacodec_jni";
}
 
Example 6
Source File: Media.java    From libvlc-sdk-android with GNU General Public License v2.0 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater ? "mediacodec_ndk" : "mediacodec_jni";
}
 
Example 7
Source File: Media.java    From VCL-Android with Apache License 2.0 4 votes vote down vote up
private static String getMediaCodecModule() {
    return AndroidUtil.isLolliPopOrLater() ? "mediacodec_ndk" : "mediacodec_jni";
}