/** * Get the Track count. */ public int getTrackCount() { final Track[] tracks = getTracks(); return tracks != null ? tracks.length : 0; }
/** * Get the Track count. */ public int getTrackCount() { final Track[] tracks = getTracks(); return tracks != null ? tracks.length : 0; }
/** * Get the Track count. */ public int getTrackCount() { final Track[] tracks = getTracks(); return tracks != null ? tracks.length : 0; }
/** * Get a Track * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}. * * @param idx index of the track * @return Track or null if not idx is not valid * @see #getTrackCount() */ public Track getTrack(int idx) { final Track[] tracks = getTracks(); if (tracks == null || idx < 0 || idx >= tracks.length) return null; return tracks[idx]; }
/** * Get the Track count. */ public int getTrackCount() { final Track[] tracks = getTracks(); return tracks != null ? tracks.length : 0; }
/** * Get the Track count. */ public int getTrackCount() { final Track[] tracks = getTracks(); return tracks != null ? tracks.length : 0; }
/** * Get a Track * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}. * * @param idx index of the track * @return Track or null if not idx is not valid * @see #getTrackCount() */ public Track getTrack(int idx) { final Track[] tracks = getTracks(); if (tracks == null || idx < 0 || idx >= tracks.length) return null; return tracks[idx]; }
/** * Get a Track * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}. * * @param idx index of the track * @return Track or null if not idx is not valid * @see #getTrackCount() */ public Track getTrack(int idx) { final Track[] tracks = getTracks(); if (tracks == null || idx < 0 || idx >= tracks.length) return null; return tracks[idx]; }
/** * Get a Track * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}. * * @param idx index of the track * @return Track or null if not idx is not valid * @see #getTrackCount() */ public Track getTrack(int idx) { final Track[] tracks = getTracks(); if (tracks == null || idx < 0 || idx >= tracks.length) return null; return tracks[idx]; }
/** * Get a Track * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}. * * @param idx index of the track * @return Track or null if not idx is not valid * @see #getTrackCount() */ public Track getTrack(int idx) { final Track[] tracks = getTracks(); if (tracks == null || idx < 0 || idx >= tracks.length) return null; return tracks[idx]; }