Menu

Default image problem

Developers
jerpod
2009-03-11
2013-04-17
  • jerpod

    jerpod - 2009-03-11

    I'm dynamically creating playlists for XSPF player, but I'm unable to get a default image to display when the player initially loads.  Autoload is set to true, and autoplay is set to false.  Here's what a sample playlist looks like:

    <?xml version="1.0" encoding="UTF-8" ?>
    <playlist version="0" xmlns="http://xspf.org/ns/0/">
    <title>Test</title>
    <image>/images/defaultcoverart.jpg</image>
    <trackList>
    <track>
    <location>/uploadedFiles/Podcasting/Age/Forever.mp3?n=4451</location>
    <title>Test mp3</title>
    <creator>Jerry Podhajsky</creator>
    <image>/images/defaultcoverart.jpg</image>
    </track>
    </trackList>
    </playlist>

    Notice that in this test, I'm using the same image for botth default and track image.  When the player initially loads, no image is displayed.  But if I select the track, the image does load as expected.

    Am I using the wrong element name for the default image?  Thanks!

    jp

     
    • jerpod

      jerpod - 2009-03-26

      Still trying to figure out this default image problem for XSPF player.  Am I wrong in thinking that a playlist can have a default image associated with it?  And that that image would be specified in the playlist as:

      <?xml version="1.0" encoding="UTF-8" ?>
      <playlist version="0" xmlns="http://xspf.org/ns/0/">
      <title>Test</title>
      <image>/images/defaultcoverart.jpg</image>
      <trackList>
      <track>
      <location>/uploadedFiles/Podcasting/Age/Forever.mp3?n=4451</location>
      <title>Test mp3</title>
      <creator>Joe Blow</creator>
      <image>/images/defaultcoverart.jpg</image>
      </track>
      </trackList>
      </playlist>

      Thanks in advance for any assistance.

      jp

       
      • Kent Murray

        Kent Murray - 2009-03-26

        I was able to accomplish this by editing the .FLA file in Flash, just dropping an image in the placeholder space, and republishing the swf file. You will also need the .as file that come in the download and the silkscreen font (http://www.kottke.org/plus/type/silkscreen/)however to do this (as well as having Flash installed on your computer of course).

        Kent

         

Log in to post a comment.