You are here

private function Playlist::getPlaylistXML in MediaFront 7

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

Returns the full playlist in Playlist XML format.

Parameters

- The track contents.:

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

File

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

Class

Playlist
Playlist Class

Code

private function getPlaylistXML($content) {
  $output = '<?xml version="1.0" encoding="UTF-8"?>';
  $output .= "\n";
  $output .= '<playlist version="1" xmlns="http://xspf.org/ns/0/"><trackList>';
  $output .= "\n";
  $output .= $content;
  $output .= '</trackList></playlist>';
  $output .= "\n";
  return $output;
}