From e23bfb3a2437da54f54ff0c0694ce7ac876c19bc Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 19 Dec 2017 15:09:04 -0800 Subject: [PATCH] Update manifest parser tutorial Issue #1183 Change-Id: Ic16e84f98cb45f2ecbba6da985f310e8f55b6b42 --- docs/tutorials/manifest-parser.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/manifest-parser.md b/docs/tutorials/manifest-parser.md index 4b6d1fab0..bf8f2bc42 100644 --- a/docs/tutorials/manifest-parser.md +++ b/docs/tutorials/manifest-parser.md @@ -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',