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; }
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; }
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); }
public Builder withPlaylistType(PlaylistType playlistType) { mPlaylistType = playlistType; return(this); }