示例#1
0
        public void setMaster()
        {
            if (isMedia())
            {
                throw new ParseException(ParseExceptionType.MASTER_IN_MEDIA);
            }

            if (mMasterParseState == null)
            {
                mMasterParseState = new MasterParseState();
            }
        }
示例#2
0
        public void parse(String line, ParseState state)
        {
            PlaylistData.Builder builder     = new PlaylistData.Builder();
            MasterParseState     masterState = state.getMaster();

            masterState.playlists.Add(builder
                                      .withUri(line)
                                      .withStreamInfo(masterState.streamInfo)
                                      .build());

            masterState.streamInfo = null;
        }