Constructor
# new SingleItemPlaylist(playlistData, seasonData)
Construct a playlist which contains a single map from playlistData.
Parameters:
Name | Type | Description |
---|---|---|
playlistData |
playlistData
|
data for this playlist |
seasonData |
seasonData
|
data for this playlist's parent Season |
Extends
- playlist
Members
ScheduledPlaylistItem
# readonly nullable currentMap
The ScheduledPlaylistItem for this playlist if within date bounds, otherwise null.
ScheduledPlaylistItem
# readonly nullable nextMap
The ScheduledPlaylistItem for this playlist if before the start time, otherwise null.
Array.<ScheduledPlaylistItem>
# rotations
Array containing a single ScheduledPlaylistItem. Type matches other classes which extend Playlist so that Array methods can be used predictably.
Methods
# getMapByDate(dateopt) → (nullable) {ScheduledPlaylistItem}
The ScheduledPlaylistItem for this playlist if within date bounds, otherwise null.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
date |
parseableDate
|
<optional> |
new Date() | the date to target |
active map or null