private function Playlist::rssGetTrack in MediaFront 7
Same name and namespace in other branches
- 6.2 players/osmplayer/player/playlist/Playlist.php \Playlist::rssGetTrack()
- 6 players/osmplayer/player/playlist/Playlist.php \Playlist::rssGetTrack()
Returns a single track listing in an RSS XML format.
Parameters
- The file used for this track.:
- The image associated with this track.:
1 call to Playlist::rssGetTrack()
- Playlist::getPlaylist in players/osmplayer/ player/ playlist/ Playlist.php 
- Returns the playlist in XML form.
File
- players/osmplayer/ player/ playlist/ Playlist.php, line 424 
Class
- Playlist
- Playlist Class
Code
private function rssGetTrack($file, $image) {
  $output = '<item>';
  $output .= "\n";
  $output .= '<title>' . basename($file) . '</title>';
  $output .= "\n";
  $output .= '<media:content url="' . $file . '" type="' . $this
    ->getMimeType($file) . '"/>';
  if ($image) {
    $output .= '<media:thumbnail url="' . $image . '"/>';
  }
  $output .= "\n";
  $output .= '</item>';
  $output .= "\n";
  return $output;
}