jint Java_org_videolan_libvlc_LibVLC_getTitleCount(JNIEnv *env, jobject thiz) { libvlc_media_player_t *mp = getMediaPlayer(env, thiz); if (mp) return libvlc_media_player_get_title_count(mp); return -1; }
jint Java_org_videolan_libvlc_MediaPlayer_getTitleCount(JNIEnv *env, jobject thiz) { vlcjni_object *p_obj = VLCJniObject_getInstance(env, thiz); if (!p_obj) return -1; return libvlc_media_player_get_title_count(p_obj->u.p_mp); }
void VlcMediaWidget::updateTitles() { titleCount = libvlc_media_player_get_title_count(vlcMediaPlayer); currentTitle = libvlc_media_player_get_title(vlcMediaPlayer); }