Exemplo n.º 1
0
 public Builder(List <TrackData> tracks, List <String> unknownTags, int targetDuration, int mediaSequenceNumber, bool isIframesOnly, bool isOngoing, PlaylistType playlistType, StartData startData)
 {
     mTracks              = tracks;
     mUnknownTags         = unknownTags;
     mTargetDuration      = targetDuration;
     mMediaSequenceNumber = mediaSequenceNumber;
     mIsIframesOnly       = isIframesOnly;
     mIsOngoing           = isOngoing;
     mPlaylistType        = playlistType;
     mStartData           = startData;
 }
Exemplo n.º 2
0
 private MediaPlaylist(List <TrackData> tracks, List <String> unknownTags, int targetDuration, StartData startData, int mediaSequenceNumber, bool isIframesOnly, bool isOngoing, PlaylistType playlistType)
 {
     mTracks              = DataUtil.emptyOrUnmodifiable(tracks);
     mUnknownTags         = DataUtil.emptyOrUnmodifiable(unknownTags);
     mTargetDuration      = targetDuration;
     mMediaSequenceNumber = mediaSequenceNumber;
     mIsIframesOnly       = isIframesOnly;
     mIsOngoing           = isOngoing;
     mStartData           = startData;
     mPlaylistType        = playlistType;
 }
Exemplo n.º 3
0
            public void parse(String line, ParseState state)
            {
                lineParser.parse(line, state);

                Match match = ParseUtil.match(Constants.EXT_X_PLAYLIST_TYPE_PATTERN, line, getTag());

                if (state.getMedia().playlistType != null)
                {
                    throw ParseException.create(ParseExceptionType.MULTIPLE_EXT_TAG_INSTANCES, getTag(), line);
                }

                //state.getMedia().playlistType = ParseUtil.parseEnum(match.Groups[1].Value, typeof(PlaylistType), getTag());
                state.getMedia().playlistType = PlaylistType.fromValue(match.Groups[1].Value);
            }
Exemplo n.º 4
0
 public Builder withPlaylistType(PlaylistType playlistType)
 {
     mPlaylistType = playlistType;
     return(this);
 }