mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
Update manifest parser tutorial
Issue #1183 Change-Id: Ic16e84f98cb45f2ecbba6da985f310e8f55b6b42
This commit is contained in:
@@ -217,7 +217,7 @@ segment index. Because the original manifest object is modified in-place,
|
||||
adding them to the index will allow the Player to use them. You *cannnot* add
|
||||
new Variants or text streams to an existing Period.
|
||||
|
||||
To add a new Period, you must first call `filterPeriod`. This will filter out
|
||||
To add a new Period, you must first call `filterNewPeriod`. This will filter out
|
||||
any streams that can't be played by the platform or those that are incompatible
|
||||
with the currently playing streams. Then you can just add them to the manifest
|
||||
object. Because the original manifest is modified in-place, the Player will
|
||||
@@ -303,6 +303,7 @@ MyManifestParser.prototype.loadStream_ = function(type) {
|
||||
width: type == 'video' ? 640 : undefined,
|
||||
height: type == 'video' ? 480 : undefined,
|
||||
kind: type == 'text' ? 'subtitles' : undefined,
|
||||
channelsCount: type == 'audio' ? 2 : undefined,
|
||||
encrypted: false,
|
||||
keyId: null,
|
||||
language: 'en',
|
||||
|
||||
Reference in New Issue
Block a user