@@ -92,7 +92,7 @@ less permissive way than custom ones:
9292- An error coming from one of them will lead us to completely stop the content on a fatal
9393 error
9494
95- ## PeriodStreams
95+ ## TrackSelectorStreams
9696
9797The _ DASH_ streaming technology has a concept called _ Period_ . Simply put, it allows to
9898set various types of content successively in the same manifest.
@@ -126,11 +126,11 @@ As such, they have to be considered separately - in a different Period:
126126 TV Show Italian Film American film
127127```
128128
129- In the RxPlayer, we create one _ PeriodStream _ per Period ** and** per type.
129+ In the RxPlayer, we create one _ TrackSelectorStream _ per Period ** and** per type.
130130
131- _ PeriodStreams _ are automatically created/destroyed during playback. The job of a single
132- _ PeriodStream _ is to process and download optimally the content linked to a single
133- _ Period_ and to a single type:
131+ _ TrackSelectorStreams _ are automatically created/destroyed during playback. The job of a
132+ single _ TrackSelectorStream _ is to process and download optimally the content linked to a
133+ single _ Period_ and to a single type:
134134
135135```
136136- VIDEO BUFFER -
@@ -159,7 +159,7 @@ _Period_ and to a single type:
159159
160160To allow smooth transitions between them, we also might want to preload content defined by
161161a subsequent _ Period_ once we lean towards the end of the content described by the
162- previous one. Thus, multiple _ PeriodStreams _ might be active at the same time:
162+ previous one. Thus, multiple _ TrackSelectorStreams _ might be active at the same time:
163163
164164```
165165+---------------------------- AUDIO ----------------------------------+
@@ -189,16 +189,16 @@ previous one. Thus, multiple _PeriodStreams_ might be active at the same time:
189189
190190### Multi-Period management
191191
192- The creation/destruction of _ PeriodStreams _ is actually done in a very precize and optimal
193- way, which gives a higher priority to immediate content.
192+ The creation/destruction of _ TrackSelectorStreams _ is actually done in a very precize and
193+ optimal way, which gives a higher priority to immediate content.
194194
195195To better grasp how it works, let's imagine a regular use-case, with two periods for a
196196single type of buffer:
197197
198198---
199199
200- Let's say that the _ PeriodStream _ for the first _ Period_ (named P1) is currently actively
201- downloading segments (the "^" sign is the current position):
200+ Let's say that the _ TrackSelectorStream _ for the first _ Period_ (named P1) is currently
201+ actively downloading segments (the "^" sign is the current position):
202202
203203```
204204 P1
@@ -214,7 +214,7 @@ Once P1 is full (it has no segment left to download):
214214 ^
215215```
216216
217- We will be able to create a new _ PeriodStream _ , P2, for the second _ Period_ :
217+ We will be able to create a new _ TrackSelectorStream _ , P2, for the second _ Period_ :
218218
219219```
220220 P1 P2
@@ -259,15 +259,15 @@ Once P1, goes full again, we re-create P2:
259259_ Note that we still have the segment pushed to P2 available in the corresponding media
260260buffer_
261261
262- When the current position go ahead of a _ PeriodStream _ (here ahead of P1):
262+ When the current position go ahead of a _ TrackSelectorStream _ (here ahead of P1):
263263
264264```
265265 P1 P2
266266|======|=== |
267267 ^
268268```
269269
270- This _ PeriodStream _ is destroyed to free up ressources:
270+ This _ TrackSelectorStream _ is destroyed to free up ressources:
271271
272272```
273273 P2
@@ -277,15 +277,15 @@ This _PeriodStream_ is destroyed to free up ressources:
277277
278278---
279279
280- When the current position goes behind the first currently defined _ PeriodStream _ :
280+ When the current position goes behind the first currently defined _ TrackSelectorStream _ :
281281
282282```
283283 P2
284284 |=== |
285285 ^
286286```
287287
288- Then we destroy all previous _ PeriodStreams _ and [ re-] create the one needed:
288+ Then we destroy all previous _ TrackSelectorStreams _ and [ re-] create the one needed:
289289
290290```
291291 P1
@@ -305,7 +305,8 @@ re-create P2, which will also keep its already-pushed segments:
305305---
306306
307307For multiple types of buffers (example: _ audio_ and _ video_ ) the same logic is repeated
308- (and separated) as many times. An _ audio_ _ PeriodStream_ will not influence a _ video_ one:
308+ (and separated) as many times. An _ audio_ _ TrackSelectorStream_ will not influence a
309+ _ video_ one:
309310
310311```
311312--------------------------- AUDIO --------------------------------
@@ -324,13 +325,14 @@ For multiple types of buffers (example: _audio_ and _video_) the same logic is r
324325 ^
325326```
326327
327- At the end, we should only have _ PeriodStream [ s] _ for consecutive Period[ s] :
328+ At the end, we should only have _ TrackSelectorStream [ s] _ for consecutive Period[ s] :
328329
329330- The first chronological one is the one currently seen by the user.
330331- The last chronological one is the only one downloading content.
331- - In between, we only have full consecutive _ PeriodStreams _ .
332+ - In between, we only have full consecutive _ TrackSelectorStreams _ .
332333
333334### Communication with the API
334335
335- Any "Stream" communicates to the API about creations and destructions of _ PeriodStreams_
336- respectively through ` "periodStreamReady" ` and ` "periodStreamCleared" ` callbacks.
336+ Any "Stream" communicates to the API about creations and destructions of
337+ _ TrackSelectorStreams_ respectively through ` "streamReady" ` and ` "streamCleared" `
338+ callbacks.
0 commit comments