You are here

private function Playlist::asxGetTrack in MediaFront 7

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

Returns a single track listing in an ASX XML format.

Parameters

- The file used for this track.:

- The image associated with this track.:

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

File

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

Class

Playlist
Playlist Class

Code

private function asxGetTrack($file, $image) {
  $output = '<entry>';
  $output .= "\n";
  $output .= '<title>' . basename($file) . '</title>';
  $output .= "\n";
  $output .= '<ref href="' . $file . '"/>';
  if ($image) {
    $output .= '<param name="image" value="' . $image . '"/>';
  }
  $output .= "\n";
  $output .= '</entry>';
  $output .= "\n";
  return $output;
}