Skip to content
Snippets Groups Projects

Draft: VideoHelper: use Display Fit mode to fill/fit the video

Open Steve Lhomme requested to merge robUx4/libvlcjni:fit-mode into master
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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
863 872 nativeSetAspectRatio(aspect);
864 873 }
865 874
875 /**
876 * Get current video aspect ratio
  • 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;
  • Steve Lhomme mentioned in merge request vlc!5991 (closed)

    mentioned in merge request vlc!5991 (closed)

  • Please register or sign in to reply
    Loading