MAF.utility.PagerStorageClass
This is used by the MAF.utility.Pager to store a page size array of items.
new MAF.utility.PagerStorageClass()
Example
The below example will add 2 streams to the media entry both having a bitrate of 1000
new MAF.media.PlaylistEntry({
bitrate: 1000,
streams: [
{ url: 'http://my.url/video1.mp4' },
{ url: 'http://my.url/video2.mp4' }
]
});Methods
add()
- Deprecated Use MAF.utility.PagerStorageClass#addItems instead.
addItems(items)
Parameters:
Name Type Description items Array These will be added to the Page. Duplicates will be removed.
contains()
remove(o, k)
Parameters:
Name Type Description o Array Array of items to remove from this PagerStorageClass
k Boolean truncate()
Clears the items in this storage class.