Constructor
new StreamInfo()
Creates a StreamInfo.
- Source:
Members
-
(private, static) nextUniqueId_ :number
-
The next unique ID to assign to a StreamInfo.
Type:
- number
- Source:
-
allowedByApplication :boolean
-
True if the application has not restricted the stream.
Type:
- boolean
- Source:
-
allowedByKeySystem :boolean
-
True if the stream is 1. unencrypted; 2. encrypted but a usable license is expected to be acquired; 3. encrypted and a usable license has already been acquired.
Type:
- boolean
- Source:
-
(nullable) bandwidth :number
-
The stream's required bandwidth in bits per second.
Type:
- number
- Source:
-
codecs :string
-
Type:
- string
- Source:
-
(nullable) height :number
-
Type:
- number
- Source:
-
(nullable) id :string
-
An ID specified within the manifest, which is not guaranteed to be unique.
Type:
- string
- Source:
-
(non-null) keyIds :Array.<string>
-
Key IDs, provided in the manifest, as hex strings.
Type:
- Array.<string>
- Source:
-
mimeType :string
-
Type:
- string
- Source:
-
segmentIndexSource :shaka.media.ISegmentIndexSource
-
The StreamInfo owns the SegmentIndexSource.
Type:
- Source:
-
segmentInitSource :shaka.media.SegmentInitSource
-
The StreamInfo owns the SegmentInitSource.
Type:
- Source:
-
timestampOffset :number
-
An offset, in seconds, to apply to each timestamp within each media segment that's put in buffer.
Type:
- number
- Source:
-
uniqueId :number
-
Type:
- number
- Source:
-
(nullable) width :number
-
Type:
- number
- Source:
Methods
-
destroy()
-
Destroys this StreamInfo.
- Source:
-
getContentType() → {string}
-
Gets the StreamInfos's content type, which is the first part of the MIME type.
- Source:
Returns:
- Type
- string
-
getFullMimeType() → {string}
-
Gets the StreamInfos's full MIME type, which is a combintation of the StreamInfos's |mimeType| and |codecs| fields.
- Source:
Returns:
- Type
- string
-
usable() → {boolean}
-
- Source:
Returns:
True if the stream is allowed by both the key system and the application; otherwise, return false.- Type
- boolean