Draft: VideoHelper: use Display Fit mode to fill/fit the video
3 unresolved threads
3 unresolved threads
This requires VLC 4 with vlc@ffd9f613 and vlc!5991 (closed) for the fill mode.
Keep as draft until vlc!5991 (closed) is merged, then we need to update the VLC hash.
Merge request reports
Activity
Filter activity
1418 1445 private native void nativeSetScale(float scale); 1419 1446 private native String nativeGetAspectRatio(); 1420 1447 private native void nativeSetAspectRatio(String aspect); 1448 private native int nativeGetDisplayFit(); 1449 private native void nativeSetDisplayFit(int aspect); 964 jobject thiz) 965 { 966 vlcjni_object *p_obj = VLCJniObject_getInstance(env, thiz); 967 968 if (!p_obj) 969 return 1; // by default the mode is "smaller" 970 971 return libvlc_video_get_display_fit(p_obj->u.p_mp); 972 } 973 974 void 975 Java_org_videolan_libvlc_MediaPlayer_nativeSetDisplayFit(JNIEnv *env, 976 jobject thiz, 977 jint fit) 978 { 979 const char* psz_aspect; mentioned in merge request vlc!5991 (closed)