|
 |
|
| Autor |
Nachricht |
tpk Neuer [User]

Anmeldung: 25.02.08 Beiträge: 6
|
Verfasst am: 05.05.2008, 20:45 Titel: Dynamische Playliste für xsfp-player |
|
|
Hallo,
ich möchte gerne für den xsfp-Player die Play-Liste direkt aus der Datenbank erzeugen.
Ich habe versucht, in playlist_url eine Datei playlist.php aufzurufen. Das scheint aber nicht zu funktionieren (wenn ich playlist.php durch playlist.xsfp ersetze, geht es tadellos)
Oder komme ich nicht umhin, eine xspf-Datei mit php zu generieren?
Schönen Dank
Thomas
datei mit player:
| Code: | <object type="application/x-shockwave-flash" width="400" height="170"
data="xspf_player.swf?playlist_url=http://localhost/web/player/playlist.php">
<param name="movie"
value="xspf_player.swf?playlist_url=http://localhost/web/player/playlist.php" />
</object> |
playlist.php
| Code: | <?php header('Content-type: application/xspf+xml'); ?>
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://example.com/song_1.mp3</location>
<!-- artist or band name -->
<creator>Led Zeppelin</creator>
<!-- album title -->
<album>Houses of the Holy</album>
<!-- name of the song -->
<title>No Quarter</title>
<!-- comment on the song -->
<annotation>I love this song</annotation>
<!-- song length, in milliseconds -->
<duration>271066</duration>
<!-- album art -->
<image>http://images.amazon.com/images/P/B000002J0B.01.MZZZZZZZ.jpg</image>
<!-- if this is a deep link, URL of the original web page -->
<info>http://example.com</info>
</track>
</trackList>
</playlist> |
|
|
| Nach oben |
|
 |
|
|
 |
|
Alle Zeiten sind GMT + 1 Stunde
|
| Seite 1 von 1 |
|  |