/**
  * Returns a set of links to the media items
  * @return ItemLink[] the item links
  */
 public function getItemLinks()
 {
     $items = array();
     // An item may consist of multiple items, a file may consist of multiple
     // links
     foreach ($this->getStreamableItems() as $mediaItem) {
         $name = $mediaItem->getDisplayName();
         // Get the links to the media. We have to omit credentials from the
         // URLs if the user is using Internet Explorer since it won't
         // follow such links
         $links = VideoLibrary::getVideoLinks($mediaItem->file, Browser::isInternetExplorer());
         $linkCount = count($links);
         foreach ($links as $k => $link) {
             $label = $linkCount > 1 ? $name . ' (#' . ++$k . ')' : $name;
             $items[] = new ItemLink($label, $link, $mediaItem);
         }
     }
     return $items;
 }