[Android] [PATCH 1/5] Added bitrate information to TrackInfo class.
Paulo Vitor Magacho da Silva
pvmagacho at gmail.com
Fri Jul 25 04:14:29 CEST 2014
---
vlc-android/jni/libvlcjni-track.c | 1 +
vlc-android/src/org/videolan/libvlc/TrackInfo.java | 1 +
2 files changed, 2 insertions(+)
diff --git a/vlc-android/jni/libvlcjni-track.c b/vlc-android/jni/libvlcjni-track.c
index df558ea..14a142e 100644
--- a/vlc-android/jni/libvlcjni-track.c
+++ b/vlc-android/jni/libvlcjni-track.c
@@ -161,6 +161,7 @@ jobjectArray read_track_info_internal(JNIEnv *env, jobject thiz, libvlc_media_t*
setInt(env, item, "Type", p_tracks[i]->i_type);
setString(env, item, "Codec", (const char*)vlc_fourcc_GetDescription(0,p_tracks[i]->i_codec));
setString(env, item, "Language", p_tracks[i]->psz_language);
+ setInt(env, item, "Bitrate", p_tracks[i]->i_bitrate);
if (p_tracks[i]->i_type == libvlc_track_video)
{
diff --git a/vlc-android/src/org/videolan/libvlc/TrackInfo.java b/vlc-android/src/org/videolan/libvlc/TrackInfo.java
index 7cf23f0..b55dc55 100644
--- a/vlc-android/src/org/videolan/libvlc/TrackInfo.java
+++ b/vlc-android/src/org/videolan/libvlc/TrackInfo.java
@@ -32,6 +32,7 @@ public class TrackInfo {
public int Id;
public String Codec;
public String Language;
+ public int Bitrate;
/* Video */
public int Height;
--
1.8.5.2 (Apple Git-48)
More information about the Android
mailing list