You are here

private function Playlist::playlistGetTrack in MediaFront 6

Same name and namespace in other branches
  1. 6.2 players/osmplayer/player/playlist/Playlist.php \Playlist::playlistGetTrack()
  2. 7 players/osmplayer/player/playlist/Playlist.php \Playlist::playlistGetTrack()

Returns a single track listing in a playist XML format.

Parameters

- The file used for this track.:

- The image associated with this track.:

1 call to Playlist::playlistGetTrack()
Playlist::getPlaylist in players/osmplayer/player/playlist/Playlist.php
Returns the playlist in XML form.

File

players/osmplayer/player/playlist/Playlist.php, line 466

Class

Playlist
Playlist Class

Code

private function playlistGetTrack($file, $image) {
  $output = '<track>';
  $output .= "\n";
  $output .= '<title>' . basename($file) . '</title>';
  $output .= "\n";
  $output .= '<location>' . $file . '</location>';
  if ($image) {
    $output .= '<image>' . $image . '</image>';
  }
  $output .= "\n";
  $output .= '</track>';
  $output .= "\n";
  return $output;
}