Add note about catching selectTimedMetadataTrack exception

This commit is contained in:
Hampton Maxwell 2018-12-13 12:50:17 -08:00 committed by GitHub
parent 46701448e7
commit b485e64c88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -765,7 +765,7 @@ public class ReactVideoView extends ScalableVideoView implements
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
return;
}
try {
try { // It's possible this could throw an exception if the framework doesn't support getting track info
MediaPlayer.TrackInfo[] trackInfo = mp.getTrackInfo();
for (int i = 0; i < trackInfo.length; ++i) {
if (trackInfo[i].getTrackType() == MediaPlayer.TrackInfo.MEDIA_TRACK_TYPE_TIMEDTEXT) {