InputStream is = SrtParserTest.class.getResourceAsStream("/subs.srt"); TextTrackImpl track = SrtParser.parse(is);