pause = 'true' with xml for mediaplayer not working
Is this a bug?
I am using the set external playlist command. However it will not start paused.
It plays each time.
I am using both the parameter in the xml file 'pause = true' and also in the mediaplayer properties in koolmoves.
this is my code:
---------------AS3------------
mp.setExternalXMLPlaylist(new URLRequest('mp.xml'));
stop();
---------------XML--------------
<?xml version="1.0" encoding="utf-8"?>
<playlist start="0" pause="true" repeat="true" shuffle="false">
<item label="Grapevine Fires">
<audio src="./mp3/test1.mp3" />
</item>
<item label="Kiss And Say Goodbye">
<audio src="./mp3/test3.mp3" />
</item>
</playlist>
-------------------------------
Files:
http://rapidshare.com/files/43990822...alplaylist.zip
why does it not work? A bug?
cheers
Wilbert is sick so lets wait a few days until he feels better. He probably is best suited to determine if this is a bug.
It's not a bug. It's explained in the docs.
pause can be "init", "before", "after" or "false". When omitted pause is "false".
Thanks Wil.
I however looked through the docs and I cannot see where it is mentioned.
I did a search for the word 'pause' in the help file, came up with nothing.
I did a search for the word 'pause' in the 'mediaplayer api.txt' and it did not show what you mentioned.
It says this: "paused : when set to true, the player starts in paused mode."
I also searched the manual pdf.
Where is it mentioned exactly?
cheers
I also cannot set the 'repeat' = false
it does not work either
cheers
You have to open the KoolMoves AS3 API documentation and look at the MediaPlayer class. Just below the setExternalXMLPlaylist method, there's an example of a playlist file that mentions the options.
Not in this API (see attachment)
AHA!!!
but I think I just found the documentation you mean.
Here:
C:\Program Files\KoolMoves\Bin\AS3\Documentation\km\Index.htm l
Why is the documentation in such an obscure place?
Anyway thanks for your help.
Attached Files
The one you found is the right one. You can also bring it up by clicking a button in the actionscript editor windows.
The other file (the one you attached) is for the AS1 based media player.
KoolMoves Moderator
I bookmarked it in my browser so it's easy to find. In the software you can't keep it open while editing code.
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width