mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Some nullability cleanup for HLS playlists
PiperOrigin-RevId: 240318686
This commit is contained in:
parent
679b628326
commit
e4b49477ec
1 changed files with 5 additions and 5 deletions
|
|
@ -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 {
|
||||||
* 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 {
|
||||||
* 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.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue