Trying to figure out how to generate a youtube playlist and hope someone can give me a hand.

In the documentation here is a small guide on how to create xml files http://drupal.org/node/143656.

// Generate some playlist data which is compatible with SWF Tools.
$playlist =  swftools_prepare_playlist_data(array('image1.jpg', 'image2.jpg'));

// Pass the playlist data to the playlist display function.
print swf_list($playlist);

// REMEMBER, that swf_list bahaves like swf(), so you can
// do all the same tricks with flashvars and params.
print swf_list($playlist, '400x300');

Tried replacing the image1/.jpg and 2 with music1/2.mp3 (that is stored locally) and that works perfect. But when I try to replace image1.jpg with a youtube like i get this error warning:

strpos() [function.strpos]: Empty delimiter in \sites\all\modules\swftools\swftools.module on line 893.

have looked around but i cant find anywhere how i solve this (i use swfobject 2.1 and jw flv player 4.2)