SsManifestParser implements ParsingLoadable.Parser<SsManifest> { @Override public SsManifest parse(Uri uri, InputStream inputStream) throws IOException { try { XmlPullParser xmlParser = xmlParserFactory.newPullParser(); xmlParser.setInput(inputStream, null); SmoothStreamingMediaParser smoothStreamingMediaParser = new SmoothStreamingMediaParser(null, uri.toString()); return (SsManifest) smoothStreamingMediaParser.parse(xmlParser); } catch (XmlPullParserException e) { throw new ParserException(e); } } SsManifestParser(); @Override SsManifest parse(Uri uri, InputStream inputStream);  }
@Test public void testParseSmoothStreamingManifest() throws IOException { SsManifestParser parser = new SsManifestParser(); parser.parse( Uri.parse("https: TestUtil.getInputStream(ApplicationProvider.getApplicationContext(), SAMPLE_ISMC_1)); parser.parse( Uri.parse("https: TestUtil.getInputStream(ApplicationProvider.getApplicationContext(), SAMPLE_ISMC_2)); }