Update manifest parser tutorial

Issue #1183

Change-Id: Ic16e84f98cb45f2ecbba6da985f310e8f55b6b42
This commit is contained in:
Joey Parrish
2017-12-19 15:09:04 -08:00
parent 3f65d1c8a7
commit e23bfb3a24
+2 -1
View File
@@ -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',