Some nullability cleanup for HLS playlists

PiperOrigin-RevId: 240318686
This commit is contained in:
olly 2019-03-26 11:04:01 +00:00 committed by Oliver Woodman
parent 679b628326
commit e4b49477ec

View file

@ -43,7 +43,7 @@ public final class HlsMediaPlaylist extends HlsPlaylist {
* the media playlist does not define a media section for this segment. The same instance is
* used for all segments that share an EXT-X-MAP tag.
*/
public final @Nullable Segment initializationSegment;
@Nullable public final Segment initializationSegment;
/** The duration of the segment in microseconds, as defined by #EXTINF. */
public final long durationUs;
/** The human readable title of the segment. */
@ -60,17 +60,17 @@ public final class HlsMediaPlaylist extends HlsPlaylist {
* DRM initialization data for sample decryption, or null if the segment does not use CDM-DRM
* protection.
*/
public final @Nullable DrmInitData drmInitData;
@Nullable public final DrmInitData drmInitData;
/**
* The encryption identity key uri as defined by #EXT-X-KEY, or null if the segment does not use
* full segment encryption with identity key.
*/
public final @Nullable String fullSegmentEncryptionKeyUri;
@Nullable public final String fullSegmentEncryptionKeyUri;
/**
* The encryption initialization vector as defined by #EXT-X-KEY, or null if the segment is not
* encrypted.
*/
public final @Nullable String encryptionIV;
@Nullable public final String encryptionIV;
/**
* The segment's byte range offset, as defined by #EXT-X-BYTERANGE.
*/
@ -222,7 +222,7 @@ public final class HlsMediaPlaylist extends HlsPlaylist {
* Contains the CDM protection schemes used by segments in this playlist. Does not contain any key
* acquisition data. Null if none of the segments in the playlist is CDM-encrypted.
*/
public final @Nullable DrmInitData protectionSchemes;
@Nullable public final DrmInitData protectionSchemes;
/**
* The list of segments in the playlist.
*/