Unverified Commit b485e64c authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

Add note about catching selectTimedMetadataTrack exception

parent 46701448
Loading
Loading
Loading
Loading
+1 −1
Changes for android/src/main/java/com/brentvatne/react/ReactVideoView.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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) {