Exemplo n.º 1
0
            public void parse(String line, ParseState state)
            {
                mLineParser.parse(line, state);

                StreamInfo.Builder builder = new StreamInfo.Builder();

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.getMaster().streamInfo = builder.build();
            }
Exemplo n.º 2
0
            public void parse(String line, ParseState state)
            {
                lineParser.parse(line, state);

                MapInfo.Builder builder = new MapInfo.Builder();

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.getMedia().mapInfo = builder.build();
            }
Exemplo n.º 3
0
            public void parse(String line, ParseState state)
            {
                mLineParser.parse(line, state);

                IFrameStreamInfo.Builder builder = new IFrameStreamInfo.Builder();

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.getMaster().iFramePlaylists.Add(builder.build());
            }
Exemplo n.º 4
0
            public void parse(String line, ParseState state)
            {
                lineParser.parse(line, state);

                StartData.Builder builder = new StartData.Builder();
                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                StartData startData = builder.build();

                state.getMedia().setStartData(startData);
            }
Exemplo n.º 5
0
            public void parse(String line, ParseState state)
            {
                mLineParser.parse(line, state);

                MediaData.Builder builder = new MediaData.Builder();

                state.getMaster().clearMediaDataState();
                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.getMaster().mediaData.Add(builder.build());
            }
Exemplo n.º 6
0
            public void parse(String line, ParseState state)
            {
                if (state.startData != null)
                {
                    throw ParseException.create(ParseExceptionType.MULTIPLE_EXT_TAG_INSTANCES, getTag(), line);
                }

                StartData.Builder builder = new StartData.Builder();

                lineParser.parse(line, state);
                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.startData = builder.build();
            }
Exemplo n.º 7
0
            public void parse(String line, ParseState state)
            {
                lineParser.parse(line, state);

                EncryptionData.Builder builder = new EncryptionData.Builder()
                                                 .withKeyFormat(Constants.DEFAULT_KEY_FORMAT)
                                                 .withKeyFormatVersions(Constants.DEFAULT_KEY_FORMAT_VERSIONS);

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());

                EncryptionData encryptionData = builder.build();

                if (encryptionData.getMethod() != EncryptionMethod.NONE && encryptionData.getUri() == null)
                {
                    throw ParseException.create(ParseExceptionType.MISSING_ENCRYPTION_URI, getTag(), line);
                }

                state.getMedia().encryptionData = encryptionData;
            }