Here are the examples of the java api class com.google.android.exoplayer.smoothstreaming.SmoothStreamingManifest.TrackElement taken from open source projects.
1. SmoothStreamingChunkSource#getManifestTrackIndex()
Project: ExoPlayer
File: SmoothStreamingChunkSource.java
File: SmoothStreamingChunkSource.java
private static int getManifestTrackIndex(StreamElement element, Format format) { TrackElement[] tracks = element.tracks; for (int i = 0; i < tracks.length; i++) { if (tracks[i].format.equals(format)) { return i; } } // Should never happen. throw new IllegalStateException("Invalid format: " + format); }