loadPlaylist method

void loadPlaylist(
  1. List<CastMedia> media, {
  2. dynamic append = false,
  3. dynamic forceNext = false,
})

Implementation

void loadPlaylist(List<CastMedia> media,
    {append = false, forceNext = false}) {
  if (!append) {
    _contentQueue = media;
  } else {
    _contentQueue.addAll(media);
  }
  if (null != _mediaChannel) {
    _handleContentQueue(forceNext: forceNext || !append);
  }
}