Commit e4b49477 by olly Committed by Oliver Woodman

Some nullability cleanup for HLS playlists

PiperOrigin-RevId: 240318686
parent 679b6283
...@@ -43,7 +43,7 @@ public final class HlsMediaPlaylist extends HlsPlaylist { ...@@ -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 * 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. * 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. */ /** The duration of the segment in microseconds, as defined by #EXTINF. */
public final long durationUs; public final long durationUs;
/** The human readable title of the segment. */ /** The human readable title of the segment. */
...@@ -60,17 +60,17 @@ public final class HlsMediaPlaylist extends HlsPlaylist { ...@@ -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 * DRM initialization data for sample decryption, or null if the segment does not use CDM-DRM
* protection. * 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 * 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. * 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 * The encryption initialization vector as defined by #EXT-X-KEY, or null if the segment is not
* encrypted. * encrypted.
*/ */
public final @Nullable String encryptionIV; @Nullable public final String encryptionIV;
/** /**
* The segment's byte range offset, as defined by #EXT-X-BYTERANGE. * The segment's byte range offset, as defined by #EXT-X-BYTERANGE.
*/ */
...@@ -222,7 +222,7 @@ public final class HlsMediaPlaylist extends HlsPlaylist { ...@@ -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 * 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. * 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. * The list of segments in the playlist.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment