[Android] Added bitrate information to TrackInfo class.
Paulo Vitor Magacho da Silva
git at videolan.org
Fri Jul 25 23:40:13 CEST 2014
vlc-ports/android | branch: master | Paulo Vitor Magacho da Silva <pvmagacho at gmail.com> | Fri Jul 25 03:14:29 2014 +0100| [82ded4e4263f13dced6d47fea36b467bfe6a1765] | committer: Jean-Baptiste Kempf
Added bitrate information to TrackInfo class.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=82ded4e4263f13dced6d47fea36b467bfe6a1765
---
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;
More information about the Android
mailing list